Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: buildbot/buildbot_pnacl.sh

Issue 424763007: Non-SFI Mode: Centralise test whitelists; move to Scons (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « buildbot/buildbot_pnacl.py ('k') | src/nonsfi/irt/irt_interfaces.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 set -o xtrace 6 set -o xtrace
7 set -o nounset 7 set -o nounset
8 set -o errexit 8 set -o errexit
9 9
10 # Tell build.sh and test.sh that we're a bot. 10 # Tell build.sh and test.sh that we're a bot.
(...skipping 12 matching lines...) Expand all
23 RETCODE=0 23 RETCODE=0
24 # For scons builds an empty target indicates all targets should be built. 24 # For scons builds an empty target indicates all targets should be built.
25 # This does not run any tests, though. 25 # This does not run any tests, though.
26 # Large tests are not included in this group because they cannot be run 26 # Large tests are not included in this group because they cannot be run
27 # in parallel (they can do things like bind to local TCP ports). Large 27 # in parallel (they can do things like bind to local TCP ports). Large
28 # tests are run separately in the functions below. 28 # tests are run separately in the functions below.
29 readonly SCONS_EVERYTHING="" 29 readonly SCONS_EVERYTHING=""
30 readonly SCONS_S_M="small_tests medium_tests" 30 readonly SCONS_S_M="small_tests medium_tests"
31 readonly SCONS_S_M_IRT="small_tests_irt medium_tests_irt" 31 readonly SCONS_S_M_IRT="small_tests_irt medium_tests_irt"
32 32
33 # This uses the newlib-based nonsfi_loader, for which only a subset of 33 # This uses the newlib-based nonsfi_loader.
34 # the tests works so far. 34 readonly SCONS_NONSFI_NEWLIB="\
35 # TODO(hamaji): Enable more tests. 35 nonsfi_nacl=1 \
36 readonly SCONS_NONSFI_NEWLIB_TESTS="\ 36 nonsfi_tests_irt"
37 run_dup_test_irt \ 37 # This uses the host-libc-based nonsfi_loader.
38 run_float_test_irt \
39 run_hello_world_test_irt \
40 run_malloc_realloc_calloc_free_test_irt \
41 run_mmap_test_irt \
42 run_stack_alignment_test_irt \
43 run_syscall_test_irt"
44 # This uses the host-libc-based nonsfi_loader, for which only a subset of
45 # the tests works so far.
46 # Using skip_nonstable_bitcode=1 here disables the tests for zero-cost C++ 38 # Using skip_nonstable_bitcode=1 here disables the tests for zero-cost C++
47 # exception handling, which don't pass for Non-SFI mode yet because we 39 # exception handling, which don't pass for Non-SFI mode yet because we
48 # don't build libgcc_eh for Non-SFI mode. 40 # don't build libgcc_eh for Non-SFI mode.
49 # TODO(mseaborn): Run small_tests_irt with nonsfi_nacl=1 when it passes, 41 readonly SCONS_NONSFI="\
50 # instead of the following whitelist of tests. 42 nonsfi_nacl=1 \
51 readonly SCONS_NONSFI_TESTS="\ 43 nonsfi_tests \
52 run_clock_get_test \ 44 nonsfi_tests_irt \
53 run_dup_test \
54 run_fcntl_test \
55 run_fork_test \
56 run_hello_world_test \
57 run_mmap_test \
58 run_nanosleep_test \
59 run_prctl_test \
60 run_printf_test \
61 run_pwrite_test \
62 run_sigaction_test \
63 run_socket_test \
64 run_stack_alignment_test \
65 run_syscall_test \
66 run_hello_world_test_irt \
67 run_float_test_irt \
68 run_malloc_realloc_calloc_free_test_irt \
69 run_dup_test_irt \
70 run_mmap_test_irt \
71 run_syscall_test_irt \
72 run_getpid_test_irt \
73 toolchain_tests_irt \ 45 toolchain_tests_irt \
74 skip_nonstable_bitcode=1 \ 46 skip_nonstable_bitcode=1 \
75 use_newlib_nonsfi_loader=0" 47 use_newlib_nonsfi_loader=0"
76 readonly SCONS_NONSFI_NEWLIB="nonsfi_nacl=1 ${SCONS_NONSFI_NEWLIB_TESTS}"
77 readonly SCONS_NONSFI="nonsfi_nacl=1 ${SCONS_NONSFI_TESTS}"
78 48
79 # subset of tests used on toolchain builders 49 # subset of tests used on toolchain builders
80 readonly SCONS_TC_TESTS="small_tests medium_tests" 50 readonly SCONS_TC_TESTS="small_tests medium_tests"
81 51
82 readonly SCONS_COMMON="./scons --verbose bitcode=1" 52 readonly SCONS_COMMON="./scons --verbose bitcode=1"
83 readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh" 53 readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh"
84 # This script is used by toolchain bots (i.e. tc-xxx functions) 54 # This script is used by toolchain bots (i.e. tc-xxx functions)
85 readonly PNACL_BUILD="pnacl/build.sh" 55 readonly PNACL_BUILD="pnacl/build.sh"
86 readonly DRIVER_TESTS="pnacl/driver/tests/driver_tests.py" 56 readonly DRIVER_TESTS="pnacl/driver/tests/driver_tests.py"
87 57
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 exit 1 527 exit 1
558 fi 528 fi
559 529
560 "$@" 530 "$@"
561 531
562 if [[ ${RETCODE} != 0 ]]; then 532 if [[ ${RETCODE} != 0 ]]; then
563 echo "@@@BUILD_STEP summary@@@" 533 echo "@@@BUILD_STEP summary@@@"
564 echo There were failed stages. 534 echo There were failed stages.
565 exit ${RETCODE} 535 exit ${RETCODE}
566 fi 536 fi
OLDNEW
« no previous file with comments | « buildbot/buildbot_pnacl.py ('k') | src/nonsfi/irt/irt_interfaces.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698