diff options
author | Adrian Kummerländer | 2012-10-12 21:25:12 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2012-10-12 21:25:12 +0200 |
commit | 16e2509100611447887f6050a5eb1c21ac9170c4 (patch) | |
tree | 308ed29fbeadfd6703c9cadf4881b898a7b75ba9 /Makefile | |
parent | 7c83dbbd089e29a420a388e78b14c7cb675f17a1 (diff) | |
download | SimpleParser-16e2509100611447887f6050a5eb1c21ac9170c4.tar SimpleParser-16e2509100611447887f6050a5eb1c21ac9170c4.tar.gz SimpleParser-16e2509100611447887f6050a5eb1c21ac9170c4.tar.bz2 SimpleParser-16e2509100611447887f6050a5eb1c21ac9170c4.tar.lz SimpleParser-16e2509100611447887f6050a5eb1c21ac9170c4.tar.xz SimpleParser-16e2509100611447887f6050a5eb1c21ac9170c4.tar.zst SimpleParser-16e2509100611447887f6050a5eb1c21ac9170c4.zip |
Added gtest based test cases to be executed after every compile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,8 +1,13 @@ -LIB_FILES = tree.cpp parser.cpp +LIB_FILES = tree.cpp parser.cpp PROG_FILES = main.cpp +TEST_FILES = test.cpp -all: parser +all: parser test parser: $(PROG_FILES) $(LIB_FILES) - g++ -O2 -g -o parser $(PROG_FILES) $(LIB_FILES) + g++ -O2 -g -o bin/parser $(PROG_FILES) $(LIB_FILES) + +test: $(LIB_FILES) $(TEST_FILES) + g++ -o bin/test -lgtest $(LIB_FILES) $(TEST_FILES) + ./bin/test |