From ed2742a29674222173147b73f223bc7be01e1eaf Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Sat, 29 Jan 2011 19:23:54 -0500 Subject: tests: allow 'LITMUS' as an alias of all non-Linux plugins This is useful for tests that apply to any plugin. --- tests/core_api.c | 2 +- tests/make_catalog.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tests') 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, } -TESTCASE(rt_fork_non_rt, C_EDF | GSN_EDF | PSN_EDF | PFAIR, +TESTCASE(rt_fork_non_rt, LITMUS, "children of RT tasks are not automatically RT tasks") { 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): plugins.add(p) plugins.discard('ALL') + plugins.discard('LITMUS') _('#include "tests.h"') @@ -78,7 +79,9 @@ def create_tc_tables(out=sys.stdout): count = 0 _('int %s_TESTS[] = {' % p) for (i, tc) in enumerate(tests): - if p in tc.plugins or 'ALL' in tc.plugins: + if p in tc.plugins or \ + 'ALL' in tc.plugins or \ + 'LITMUS' in tc.plugins and p != 'LINUX': _('\t%d,' % i) count += 1 _('};') -- cgit v1.2.2