forked from OpenSIPS/opensips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.test
25 lines (19 loc) · 835 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
# Are we running a specific module's tests or just the core tests?
ifndef module
module=core
endif
.PHONY: test unit_tests system_tests
ensure_test_defs:
@! 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
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!