From 79b665f9fffca50b444cbfd4b316c06c6d5baa64 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Apr 2016 18:05:30 +0200 Subject: [PATCH] Add a possibility to disable failing test cases Allow defining FAILING_{C,CPP,MULTI_CPP}_TESTS variables to exclude some tests from the unit tests suite. This is useful to disable tests failing for some language only. --- Examples/test-suite/common.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 62e1d554c..992e9493a 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -670,6 +670,11 @@ MULTI_CPP_TEST_CASES += \ wallkw.cpptest: SWIGOPT += -Wallkw preproc_include.ctest: SWIGOPT += -includeall +# Allow modules to define temporarily failing tests. +C_TEST_CASES := $(filter-out $(FAILING_C_TESTS),$(C_TEST_CASES)) +CPP_TEST_CASES := $(filter-out $(FAILING_CPP_TESTS),$(CPP_TEST_CASES)) +MULTI_CPP_TEST_CASES := $(filter-out $(FAILING_MULTI_CPP_TESTS),$(MULTI_CPP_TEST_CASES)) + NOT_BROKEN_TEST_CASES = $(CPP_TEST_CASES:=.cpptest) \ $(C_TEST_CASES:=.ctest) \