Implement test runner in C

This commit is contained in:
Dan Buch
2016-04-16 20:05:49 -04:00
parent 8c3b40b597
commit efdcb2e6ec
4 changed files with 98 additions and 22 deletions

View File

@@ -34,8 +34,8 @@ build:
# The Unit Tests
.PHONY: tests
tests: LDLIBS += -static -l$(LIBNAME)
tests: $(TESTS)
sh ./tests/runtests.sh
tests: ./tests/runtests $(TESTS)
./tests/runtests
valgrind:
VALGRIND="valgrind --log-file=/tmp/valgrind-%p.log" $(MAKE)
@@ -43,7 +43,7 @@ valgrind:
# The Cleaner
clean:
rm -rf build $(OBJECTS) $(TESTS)
rm -f tests/tests.log
rm -f tests/tests.log tests/runtests
find . -name "*.gc*" -exec rm {} \;
rm -rf `find . -name "*.dSYM" -print`