blob: b40c09b57b9022e1864beab3ad2a80670e594580 (
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; echo -n "$$T: "; ./$$T 2> $$T.log; F=$$(($$F+$$?)); done; \
echo; echo '-----'; 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
|