Vadim Zeitlin
2016-04-13 16:05:06 UTC
Hi,
I'm trying to bring yet another backend into shape for merge into SWIG
master, but right now I'm still very far from it and there are dozens
failing tests. I'd like to have a way to disable them when running the test
suite, so that I could at least check that my changes don't result in any
regressions, but unless I'm missing something, there doesn't seem to be any
way to do it now. I hoped that adding the failing tests to CPP_TEST_BROKEN
would do it, but this doesn't work like this as a test present both in
CPP_TEST_CASES and CPP_TEST_BROKEN still is getting run by default. I'm not
sure if this is intentional, but even if it is, I think it would be nice to
have some way of disabling the failing tests, so what about this trivial
patch:
---------------------------------- >8 --------------------------------------
diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk
index 3f408f3..e09cdbb 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) \
---------------------------------- >8 --------------------------------------
This would allow me to define FAILING_CPP_TESTS in the language-specific
makefile and skip testing them, at least temporarily. Or should we perhaps
just filter the broken test cases out? Or is there maybe some other, better
way of doing what I want already?
TIA,
VZ
I'm trying to bring yet another backend into shape for merge into SWIG
master, but right now I'm still very far from it and there are dozens
failing tests. I'd like to have a way to disable them when running the test
suite, so that I could at least check that my changes don't result in any
regressions, but unless I'm missing something, there doesn't seem to be any
way to do it now. I hoped that adding the failing tests to CPP_TEST_BROKEN
would do it, but this doesn't work like this as a test present both in
CPP_TEST_CASES and CPP_TEST_BROKEN still is getting run by default. I'm not
sure if this is intentional, but even if it is, I think it would be nice to
have some way of disabling the failing tests, so what about this trivial
patch:
---------------------------------- >8 --------------------------------------
diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk
index 3f408f3..e09cdbb 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) \
---------------------------------- >8 --------------------------------------
This would allow me to define FAILING_CPP_TESTS in the language-specific
makefile and skip testing them, at least temporarily. Or should we perhaps
just filter the broken test cases out? Or is there maybe some other, better
way of doing what I want already?
TIA,
VZ