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 'ltp', | 21 'ltp', |
22 'memory_Throughput', | 22 'memory_Throughput', |
23 'unixbench', | 23 'unixbench', |
24 'storage_Fio', | 24 'storage_Fio', |
25 'storage_SsdDetection', | 25 'storage_SsdDetection', |
| 26 'system_AutoLogin', |
26 'system_SAT', | 27 'system_SAT', |
27 ] | 28 ] |
28 failed_tests = [] | 29 failed_tests = [] |
29 | 30 |
30 for cros_test in chromeos_tests: | 31 for cros_test in chromeos_tests: |
31 # Try to build all tests even though some fail | 32 # Try to build all tests even though some fail |
32 | 33 |
33 try: | 34 try: |
34 setup_job.setup_test(cros_test, job) | 35 setup_job.setup_test(cros_test, job) |
35 except CmdError, e: | 36 except CmdError, e: |
36 failed_tests.append(cros_test) | 37 failed_tests.append(cros_test) |
37 | 38 |
38 print '' | 39 print '' |
39 print '########################## SUMMARY #####################################' | 40 print '########################## SUMMARY #####################################' |
40 | 41 |
41 # Print out tests that failed | 42 # Print out tests that failed |
42 if (len(failed_tests) > 0): | 43 if (len(failed_tests) > 0): |
43 print 'Finished building -- The following tests failed' | 44 print 'Finished building -- The following tests failed' |
44 for failed_test in failed_tests: | 45 for failed_test in failed_tests: |
45 print failed_test | 46 print failed_test |
46 else: | 47 else: |
47 print 'Finished building -- All tests built successfully' | 48 print 'Finished building -- All tests built successfully' |
48 print '######################### END SUMMARY ##################################' | 49 print '######################### END SUMMARY ##################################' |
49 print '' | 50 print '' |
OLD | NEW |