-
Notifications
You must be signed in to change notification settings - Fork 581
/
Makefile.test
35 lines (28 loc) · 1000 Bytes
/
Makefile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Are we running a specific module's tests or just the core tests?
ifndef module
module=core
endif
.PHONY: test unit_tests system_tests
ifneq (,$(findstring UNIT_TESTS,$(DEFS)))
include Makefile.openssl
misclibs=lib/digest_auth/libdigest_auth.a
UNIT_TESTS=1
endif
ensure_test_defs:
ifndef UNIT_TESTS
@! grep -q '^DEFS+= -DUNIT_TESTS' Makefile.conf && \
echo '\nDEFS+= -DUNIT_TESTS' >> Makefile.conf && \
echo "-DUNIT_TESTS was not enabled in Makefile.conf," \
"run 'make test' again." && exit 1 || true
else
@true
endif
unit_tests: ensure_test_defs $(NAME)
-@echo " ============= Start Unit Tests ============="
./$(NAME) -dd -T $(module) -w . -a HP_MALLOC
-@echo " ================================================"
-@echo " ======== Passed All Tests! ᕦ(ò_óˇ)ᕤ ========"
-@echo " ================================================"
system_tests:
$(MAKE) -C test/ all
test: unit_tests #system_tests #TODO: bring these up to date!