|
|
@@ -26,8 +26,11 @@ TEST_OBJECTS := $(patsubst %.cxx, .build/%.o, $(TEST_SOURCES))
|
|
|
TEST_BINARIES := .build/bin/selfvalidate .build/bin/annotation_test .build/bin/extension_test
|
|
|
EXECUTE_TESTS := $(patsubst %, %.done, $(TEST_BINARIES))
|
|
|
|
|
|
-EXCLUDED_TESTS := format* content ecmascript_regex zeroTerminatedFloats non_bmp_regex
|
|
|
-EXCLUDED_TESTS := $(shell printf ":*optional_%s" $(EXCLUDED_TESTS) | cut -c2-)
|
|
|
+EXCLUDED_FORMAT_TESTS := color idn iri iru ip-address host-name
|
|
|
+EXCLUDED_FORMAT_TESTS := $(shell printf ":*optional_format_%s*" $(EXCLUDED_TESTS) | cut -c2-)
|
|
|
+EXCLUDED_TESTS := content ecmascript_regex zeroTerminatedFloats non_bmp_regex
|
|
|
+EXCLUDED_TESTS := $(shell printf ":*optional_%s" $(EXCLUDED_TESTS) | cut -c2-):$(EXCLUDED_FORMAT_TESTS)
|
|
|
+EXCLUDED_TEST_CASES = "*leap second*"
|
|
|
|
|
|
all: run-test
|
|
|
|
|
|
@@ -55,7 +58,8 @@ run-test: $(EXECUTE_TESTS)
|
|
|
$(CXX) $< -o $@ $(LD_FLAGS) -ljsoncpp -lgmock -lcurl -lgtest
|
|
|
|
|
|
.build/bin/selfvalidate.done: .build/bin/selfvalidate
|
|
|
- .build/bin/selfvalidate --gtest_filter=-$(EXCLUDED_TESTS) $(CLEAN_ANSI)
|
|
|
+ .build/bin/selfvalidate --gtest_filter=-$(EXCLUDED_TESTS) \
|
|
|
+ --json_case_filter=-$(EXCLUDED_TEST_CASES) $(CLEAN_ANSI)
|
|
|
@ touch $@
|
|
|
|
|
|
|