aboutsummaryrefslogtreecommitdiff
path: root/test/validation/scheduler/scheduler.h
diff options
context:
space:
mode:
authorStuart Haslam <stuart.haslam@linaro.org>2015-10-14 10:28:16 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-10-15 12:50:55 +0300
commit13559ac79511cfb0544e49852f3ae874ebec6816 (patch)
tree1bb8ad11b83b14996951db3d50b0dbd7488a1569 /test/validation/scheduler/scheduler.h
parent064af297d4614368769c204acf610ea185588c7a (diff)
validation: add ability to mark tests inactive
Add the ability for individual test cases to be marked as inactive, either unconditionally or based on the result of a check function which is called at test init time. Inactive tests are registered with CUnit and are reported as inactive in test reports without being executed. All uses of CU_TestInfo have been replaced with odp_testinfo_t in order to carry the conditional function pointer in addition to the CU_TestInfo struct, and some new macros added to make things a bit easier; _CU_TEST_INFO() is renamed to ODP_TEST_INFO() but remains functionally the same, these tests will be run unconditionally. ODP_TEST_INFO_INACTIVE() can be used to define an inactive test case. There's no good reason to do this in any of the modules under test/validation/ but the intention is to allow this to be done on a per-platform basis from within the platform/<platform>/test/ tree. ODP_TEST_INFO_CONDITIONAL() takes an additional parameter which is a pointer to a function to call at test suite initialisation time to determine whether that test should be marked as inactive. Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org> Reviewed-by: Christophe Milard <christophe.milard@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/validation/scheduler/scheduler.h')
-rw-r--r--test/validation/scheduler/scheduler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/validation/scheduler/scheduler.h b/test/validation/scheduler/scheduler.h
index eab8787..c869e41 100644
--- a/test/validation/scheduler/scheduler.h
+++ b/test/validation/scheduler/scheduler.h
@@ -7,7 +7,7 @@
#ifndef _ODP_TEST_SCHEDULER_H_
#define _ODP_TEST_SCHEDULER_H_
-#include <CUnit/Basic.h>
+#include <odp_cunit_common.h>
/* test functions: */
void scheduler_test_wait_time(void);
@@ -43,14 +43,14 @@ void scheduler_test_multi_1q_mt_a_excl(void);
void scheduler_test_pause_resume(void);
/* test arrays: */
-extern CU_TestInfo scheduler_suite[];
+extern odp_testinfo_t scheduler_suite[];
/* test array init/term functions: */
int scheduler_suite_init(void);
int scheduler_suite_term(void);
/* test registry: */
-extern CU_SuiteInfo scheduler_suites[];
+extern odp_suiteinfo_t scheduler_suites[];
/* main test program: */
int scheduler_main(void);