OLD | NEW |
1 AUTHOR = "Eric Li <ericli@chromium.org>" | 1 AUTHOR = "Eric Li <ericli@chromium.org>" |
2 NAME = "AutotestClientSetup" | 2 NAME = "AutotestClientSetup" |
3 TEST_CATEGORY = "Functional" | 3 TEST_CATEGORY = "Functional" |
4 TEST_CLASS = "General" | 4 TEST_CLASS = "General" |
5 TEST_TYPE = "client" | 5 TEST_TYPE = "client" |
6 TIME = "MEDIUM" | 6 TIME = "MEDIUM" |
7 DOC="""Setup a bunch of autotest tests into a platform dependent chromeos build | 7 DOC="""Setup a bunch of autotest tests into a platform dependent chromeos build |
8 (chroot) environment. | 8 (chroot) environment. |
9 """ | 9 """ |
10 | 10 |
11 from autotest_lib.client.bin import setup_job | 11 from autotest_lib.client.bin import setup_job |
12 | 12 |
13 setup_job.initialize(job) | 13 setup_job.initialize(job) |
14 | 14 |
15 # include all tests here. | 15 # include all tests here. |
16 chromeos_tests = [ | 16 chromeos_tests = [ |
17 'compilebench', | 17 'compilebench', |
18 'dbench', | 18 'dbench', |
19 'disktest', | 19 'disktest', |
20 'gl_APICheck', | 20 'gl_APICheck', |
21 'gpu_SanAngeles', | 21 'gpu_SanAngeles', |
22 'ltp', | 22 'ltp', |
23 'memory_Throughput', | 23 'memory_Throughput', |
| 24 'network_WiFiCaps', |
24 'unixbench', | 25 'unixbench', |
25 'storage_Fio', | 26 'storage_Fio', |
26 'storage_SsdDetection', | 27 'storage_SsdDetection', |
27 'system_AutoLogin', | 28 'system_AutoLogin', |
28 'system_SAT', | 29 'system_SAT', |
29 ] | 30 ] |
30 failed_tests = [] | 31 failed_tests = [] |
31 | 32 |
32 for cros_test in chromeos_tests: | 33 for cros_test in chromeos_tests: |
33 # Try to build all tests even though some fail | 34 # Try to build all tests even though some fail |
34 | 35 |
35 try: | 36 try: |
36 setup_job.setup_test(cros_test, job) | 37 setup_job.setup_test(cros_test, job) |
37 except CmdError, e: | 38 except CmdError, e: |
38 failed_tests.append(cros_test) | 39 failed_tests.append(cros_test) |
39 | 40 |
40 print '' | 41 print '' |
41 print '########################## SUMMARY #####################################' | 42 print '########################## SUMMARY #####################################' |
42 | 43 |
43 # Print out tests that failed | 44 # Print out tests that failed |
44 if (len(failed_tests) > 0): | 45 if (len(failed_tests) > 0): |
45 print 'Finished building -- The following tests failed' | 46 print 'Finished building -- The following tests failed' |
46 for failed_test in failed_tests: | 47 for failed_test in failed_tests: |
47 print failed_test | 48 print failed_test |
48 else: | 49 else: |
49 print 'Finished building -- All tests built successfully' | 50 print 'Finished building -- All tests built successfully' |
50 print '######################### END SUMMARY ##################################' | 51 print '######################### END SUMMARY ##################################' |
51 print '' | 52 print '' |
OLD | NEW |