summaryrefslogtreecommitdiff
path: root/test/unit/Makefile.tests
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/Makefile.tests')
-rw-r--r--test/unit/Makefile.tests23
1 files changed, 19 insertions, 4 deletions
diff --git a/test/unit/Makefile.tests b/test/unit/Makefile.tests
index c542259b1..4f2f3dd5f 100644
--- a/test/unit/Makefile.tests
+++ b/test/unit/Makefile.tests
@@ -1,5 +1,20 @@
-TESTS := $(filter $(TEST_PREFIX)%,$(TESTS))
+# This makefile is separated because it's not under automake control.
+# This gets confusing, because we want:
+#
+# 1. to (re)build only the tests in the "filtered" set of tests
+# (those that we're going to run)
+# 2. run only the tests in the "filtered" set of tests.
+#
+# It's a pain to make automake happy.
-WHITE_TESTS = $(filter %_white,$(TESTS))
-BLACK_TESTS = $(filter %_black,$(TESTS))
-PUBLIC_TESTS = $(filter %_public,$(TESTS))
+# Add "filtered" tests to the set of TESTS
+TESTS = $(filter $(TEST_PREFIX)%,$(UNIT_TESTS))
+
+# subsets of the tests, based on name
+WHITE_TESTS = $(filter %_white,$(UNIT_TESTS))
+BLACK_TESTS = $(filter %_black,$(UNIT_TESTS))
+PUBLIC_TESTS = $(filter %_public,$(UNIT_TESTS))
+
+# This rule forces automake to correctly build our filtered
+# set of tests
+check-TESTS: $(TESTS)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback