blob: 17c811f2fa6171e1d80d09f2dc986d9cf1cbde5d (
plain)
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
|
# Add more tests here
TESTS=\
test_ExampleTest
CXX ?= g++
CXXFLAGS ?= -g -std=c++17 -I..
all: ${TESTS}
check: all
@F="0"; \
for T in ${TESTS}; do echo -en "\n$$T: "; ./$$T 2> $$T.log; F=$$(($$F+$$?)); done; \
echo -e '\n-----'; echo "Failed tests: $$F"; echo '-----'; \
[ $$F -eq 0 ]
EXAMPLE_TEST_SRC = \
getbaud.cc \
ExampleTest.cc
test_ExampleTest: $(EXAMPLE_TEST_SRC)
$(CXX) $(CXXFLAGS) -DOUTPUT=\"$@\" -o $@ ../uunit.cc $(EXAMPLE_TEST_SRC)
clean:
rm -f ${TESTS}
rm -f *.xml
rm -f *.log
|