aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-01-29 19:23:54 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-03 17:40:16 -0500
commited2742a29674222173147b73f223bc7be01e1eaf (patch)
tree887b7b1e0e8b84c9e5f5559a2e3595039e934803 /tests
parent5ec8a4d481017390da5ae4de027e937bc04c21ec (diff)
tests: allow 'LITMUS' as an alias of all non-Linux plugins
This is useful for tests that apply to any plugin.
Diffstat (limited to 'tests')
-rw-r--r--tests/core_api.c2
-rwxr-xr-xtests/make_catalog.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/core_api.c b/tests/core_api.c
index a4d54f5..7487c1c 100644
--- a/tests/core_api.c
+++ b/tests/core_api.c
@@ -54,7 +54,7 @@ TESTCASE(job_control_non_rt, ALL,
54} 54}
55 55
56 56
57TESTCASE(rt_fork_non_rt, C_EDF | GSN_EDF | PSN_EDF | PFAIR, 57TESTCASE(rt_fork_non_rt, LITMUS,
58 "children of RT tasks are not automatically RT tasks") 58 "children of RT tasks are not automatically RT tasks")
59{ 59{
60 unsigned int pid, job_no; 60 unsigned int pid, job_no;
diff --git a/tests/make_catalog.py b/tests/make_catalog.py
index 75b6aca..96f9b23 100755
--- a/tests/make_catalog.py
+++ b/tests/make_catalog.py
@@ -63,6 +63,7 @@ def create_tc_tables(out=sys.stdout):
63 plugins.add(p) 63 plugins.add(p)
64 64
65 plugins.discard('ALL') 65 plugins.discard('ALL')
66 plugins.discard('LITMUS')
66 67
67 _('#include "tests.h"') 68 _('#include "tests.h"')
68 69
@@ -78,7 +79,9 @@ def create_tc_tables(out=sys.stdout):
78 count = 0 79 count = 0
79 _('int %s_TESTS[] = {' % p) 80 _('int %s_TESTS[] = {' % p)
80 for (i, tc) in enumerate(tests): 81 for (i, tc) in enumerate(tests):
81 if p in tc.plugins or 'ALL' in tc.plugins: 82 if p in tc.plugins or \
83 'ALL' in tc.plugins or \
84 'LITMUS' in tc.plugins and p != 'LINUX':
82 _('\t%d,' % i) 85 _('\t%d,' % i)
83 count += 1 86 count += 1
84 _('};') 87 _('};')