aboutsummaryrefslogtreecommitdiff
path: root/test/validation/classification/odp_classification_tests.c
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/classification/odp_classification_tests.c
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/classification/odp_classification_tests.c')
-rw-r--r--test/validation/classification/odp_classification_tests.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/validation/classification/odp_classification_tests.c b/test/validation/classification/odp_classification_tests.c
index 29f1580..ca81c51 100644
--- a/test/validation/classification/odp_classification_tests.c
+++ b/test/validation/classification/odp_classification_tests.c
@@ -858,12 +858,12 @@ void classification_test_pktio_test(void)
test_pktio_pmr_match_set_cos();
}
-CU_TestInfo classification_suite[] = {
- _CU_TEST_INFO(classification_test_pmr_terms_avail),
- _CU_TEST_INFO(classification_test_pktio_set_skip),
- _CU_TEST_INFO(classification_test_pktio_set_headroom),
- _CU_TEST_INFO(classification_test_pmr_terms_cap),
- _CU_TEST_INFO(classification_test_pktio_configure),
- _CU_TEST_INFO(classification_test_pktio_test),
- CU_TEST_INFO_NULL,
+odp_testinfo_t classification_suite[] = {
+ ODP_TEST_INFO(classification_test_pmr_terms_avail),
+ ODP_TEST_INFO(classification_test_pktio_set_skip),
+ ODP_TEST_INFO(classification_test_pktio_set_headroom),
+ ODP_TEST_INFO(classification_test_pmr_terms_cap),
+ ODP_TEST_INFO(classification_test_pktio_configure),
+ ODP_TEST_INFO(classification_test_pktio_test),
+ ODP_TEST_INFO_NULL,
};