Add trivial Makefile to run tests.

This commit is contained in:
Wichert Akkerman 2012-11-21 22:45:03 +01:00
parent 2846367109
commit 456bbf1d35
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
SOURCES = ApproxTests.cpp ClassTests.cpp ConditionTests.cpp \
ExceptionTests.cpp GeneratorTests.cpp MessageTests.cpp \
MiscTests.cpp TestMain.cpp TrickyTests.cpp \
catch_self_test.cpp
OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
CXXFLAGS = -I../../include
main: $(OBJECTS)
$(CXX) -o $@ $^
junit: main
./main -r junit > junit.xml
clean:
rm -f $(OBJECTS) main junit.xml
.PHONY: main junit