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

Side by Side Diff: tools/wine_valgrind/chrome_tests.sh

Issue 2720007: Enable remoting unittests to run on build bots (Closed)
Patch Set: done again Created 10 years, 6 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
« build/common.gypi ('K') | « tools/valgrind/chrome_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # chromium-runtests.sh [testsuite] 2 # chromium-runtests.sh [testsuite]
3 # Script to run a respectable subset of Chromium's test suite 3 # Script to run a respectable subset of Chromium's test suite
4 # (excepting parts that run the browser itself, and excepting layout tests). 4 # (excepting parts that run the browser itself, and excepting layout tests).
5 # Run from parent of src directory. 5 # Run from parent of src directory.
6 # By default, runs all test suites. If you specify one testsuite 6 # By default, runs all test suites. If you specify one testsuite
7 # (e.g. base_unittests), it only runs that one. 7 # (e.g. base_unittests), it only runs that one.
8 # 8 #
9 # Chromium's test suite uses gtest, so each executable obeys the options 9 # Chromium's test suite uses gtest, so each executable obeys the options
10 # documented in the wiki at http://code.google.com/p/googletest 10 # documented in the wiki at http://code.google.com/p/googletest
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ipc_tests media_unittests net_unittests printing_unittests sbox_unittests 55 ipc_tests media_unittests net_unittests printing_unittests sbox_unittests
56 sbox_validation_tests setup_unittests tcmalloc_unittests unit_tests 56 sbox_validation_tests setup_unittests tcmalloc_unittests unit_tests
57 Default is to run all suites. It takes about five minutes to run them all 57 Default is to run all suites. It takes about five minutes to run them all
58 together, 22 minutes to run them all individually. 58 together, 22 minutes to run them all individually.
59 _EOF_ 59 _EOF_
60 exit 1 60 exit 1
61 } 61 }
62 62
63 # Tests, grouped by how long they take to run 63 # Tests, grouped by how long they take to run
64 # Skip ones that require chrome itself for the moment 64 # Skip ones that require chrome itself for the moment
65 SUITES_1="googleurl_unittests printing_unittests sbox_validation_tests setup_uni ttests" 65 SUITES_1="googleurl_unittests printing_unittests remoting_unittests sbox_validat ion_tests setup_unittests"
66 #SUITES_10="app_unittests courgette_unittests ipc_tests reliability_tests sbox_i ntegration_tests sbox_unittests tab_switching_test tcmalloc_unittests url_fetch_ test" 66 #SUITES_10="app_unittests courgette_unittests ipc_tests reliability_tests sbox_i ntegration_tests sbox_unittests tab_switching_test tcmalloc_unittests url_fetch_ test"
67 SUITES_10="app_unittests courgette_unittests ipc_tests sbox_unittests tcmalloc_u nittests" 67 SUITES_10="app_unittests courgette_unittests ipc_tests sbox_unittests tcmalloc_u nittests"
68 #SUITES_100="automated_ui_tests installer_util_unittests media_unittests nacl_ui _tests net_perftests net_unittests plugin_tests sync_unit_tests" 68 #SUITES_100="automated_ui_tests installer_util_unittests media_unittests nacl_ui _tests net_perftests net_unittests plugin_tests sync_unit_tests"
69 SUITES_100="media_unittests net_unittests" 69 SUITES_100="media_unittests net_unittests"
70 #SUITES_1000="base_unittests interactive_ui_tests memory_test page_cycler_tests perf_tests test_shell_tests unit_tests" 70 #SUITES_1000="base_unittests interactive_ui_tests memory_test page_cycler_tests perf_tests test_shell_tests unit_tests"
71 SUITES_1000="base_unittests unit_tests" 71 SUITES_1000="base_unittests unit_tests"
72 #SUITES_10000="ui_tests startup_tests" 72 #SUITES_10000="ui_tests startup_tests"
73 73
74 THE_VALGRIND_CMD="/usr/local/valgrind-10880/bin/valgrind \ 74 THE_VALGRIND_CMD="/usr/local/valgrind-10880/bin/valgrind \
75 --gen-suppressions=all \ 75 --gen-suppressions=all \
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 case $1 in 203 case $1 in
204 app_unittests) echo 200;; 204 app_unittests) echo 200;;
205 base_unittests) echo 1000;; 205 base_unittests) echo 1000;;
206 courgette_unittests) echo 1000;; 206 courgette_unittests) echo 1000;;
207 googleurl_unittests) echo 200;; 207 googleurl_unittests) echo 200;;
208 ipc_tests) echo 400;; 208 ipc_tests) echo 400;;
209 media_unittests) echo 400;; 209 media_unittests) echo 400;;
210 net_unittests) echo 2000;; 210 net_unittests) echo 2000;;
211 printing_unittests) echo 100;; 211 printing_unittests) echo 100;;
212 remoting_unittests) echo 200;;
212 sbox_unittests) echo 100;; 213 sbox_unittests) echo 100;;
213 sbox_validation_tests) echo 100;; 214 sbox_validation_tests) echo 100;;
214 setup_unittests) echo 100;; 215 setup_unittests) echo 100;;
215 tcmalloc_unittests) echo 1000;; 216 tcmalloc_unittests) echo 1000;;
216 unit_tests) echo 4000;; 217 unit_tests) echo 4000;;
217 *) echo "unknown test $1" >&2 ; exec false;; 218 *) echo "unknown test $1" >&2 ; exec false;;
218 esac 219 esac
219 } 220 }
220 221
221 # Run $2... but kill it if it takes longer than $1 seconds 222 # Run $2... but kill it if it takes longer than $1 seconds
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 esac 447 esac
447 done 448 done
448 i=`expr $i + 1` 449 i=`expr $i + 1`
449 done 450 done
450 451
451 case "$errors" in 452 case "$errors" in
452 yes) echo "Errors detected, condition red. Battle stations!" ; exit 1;; 453 yes) echo "Errors detected, condition red. Battle stations!" ; exit 1;;
453 *) echo "No errors detected." ;; 454 *) echo "No errors detected." ;;
454 esac 455 esac
455 456
OLDNEW
« build/common.gypi ('K') | « tools/valgrind/chrome_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698