Give makefiles 'test' and 'check' targets to compile and run unit tests

This commit is contained in:
Gavin Andresen
2012-09-18 11:38:19 -04:00
parent 085d9c75f4
commit 8f09e4cac4
3 changed files with 11 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ OBJS= \
all: bitcoind.exe
test check: test_bitcoin.exe FORCE
test_bitcoin.exe
obj/%.o: %.cpp $(HEADERS)
g++ -c $(CFLAGS) -o $@ $<
@@ -102,3 +105,5 @@ clean:
-del /Q obj\*
-del /Q obj-test\*
-del /Q build.h
FORCE: