|
|
| 82 |
# If the user has constrained us to run certain kinds of tests, we can tell waf |
82 |
# If the user has constrained us to run certain kinds of tests, we can tell waf |
| 83 |
# to only build |
83 |
# to only build |
| 84 |
# |
84 |
# |
| 85 |
core_kinds = ["bvt", "core", "system", "unit"] |
85 |
core_kinds = ["bvt", "core", "system", "unit", "performance"] |
| 86 |
|
86 |
|
| 87 |
# |
87 |
# |
| 88 |
# There are some special cases for test suites that kill valgrind. This is |
88 |
# There are some special cases for test suites that kill valgrind. This is |
|
|
| 1114 |
path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list") |
1114 |
path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list") |
| 1115 |
(rc, standard_out, standard_err, et) = run_job_synchronously(path_cmd, os.getcwd(), False, False) |
1115 |
(rc, standard_out, standard_err, et) = run_job_synchronously(path_cmd, os.getcwd(), False, False) |
| 1116 |
list_items = standard_out.split('\n') |
1116 |
list_items = standard_out.split('\n') |
| 1117 |
print "\n".join(sorted(list_items)) |
1117 |
# Sort tests based on lower case test name, |
|
|
1118 |
# when the test type is listed first |
| 1119 |
dict = {} |
| 1120 |
for item in list_items: |
| 1121 |
tokens = item.split() |
| 1122 |
if len(tokens) == 2 : |
| 1123 |
dict[tokens[1].lower()] = item |
| 1124 |
for key in sorted(dict.iterkeys()): |
| 1125 |
print dict[key] |
| 1118 |
|
1126 |
|
| 1119 |
if options.kinds or options.list: |
1127 |
if options.kinds or options.list: |
| 1120 |
return |
1128 |
return |