summaryrefslogtreecommitdiff
path: root/test/unit/Makefile.tests
blob: e3ec536ce0b9aa173cb0699daa7f0c3e98206a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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.

# Add "filtered" tests to the set of TESTS
TESTS = $(filter $(TEST_PREFIX)%,$(filter %$(TEST_SUFFIX),$(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