mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Give makefiles 'test' and 'check' targets to compile and run unit tests
This commit is contained in:
parent
085d9c75f4
commit
8f09e4cac4
@ -83,6 +83,9 @@ OBJS= \
|
|||||||
|
|
||||||
all: bitcoind.exe
|
all: bitcoind.exe
|
||||||
|
|
||||||
|
test check: test_bitcoin.exe FORCE
|
||||||
|
test_bitcoin.exe
|
||||||
|
|
||||||
obj/%.o: %.cpp $(HEADERS)
|
obj/%.o: %.cpp $(HEADERS)
|
||||||
g++ -c $(CFLAGS) -o $@ $<
|
g++ -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
@ -102,3 +105,5 @@ clean:
|
|||||||
-del /Q obj\*
|
-del /Q obj\*
|
||||||
-del /Q obj-test\*
|
-del /Q obj-test\*
|
||||||
-del /Q build.h
|
-del /Q build.h
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
@ -116,6 +116,9 @@ endif
|
|||||||
|
|
||||||
all: bitcoind
|
all: bitcoind
|
||||||
|
|
||||||
|
test check: test_bitcoin FORCE
|
||||||
|
./test_bitcoin
|
||||||
|
|
||||||
# auto-generated dependencies:
|
# auto-generated dependencies:
|
||||||
-include obj/*.P
|
-include obj/*.P
|
||||||
-include obj-test/*.P
|
-include obj-test/*.P
|
||||||
|
@ -132,6 +132,9 @@ OBJS= \
|
|||||||
|
|
||||||
all: bitcoind
|
all: bitcoind
|
||||||
|
|
||||||
|
test check: test_bitcoin FORCE
|
||||||
|
./test_bitcoin
|
||||||
|
|
||||||
# auto-generated dependencies:
|
# auto-generated dependencies:
|
||||||
-include obj/*.P
|
-include obj/*.P
|
||||||
-include obj-test/*.P
|
-include obj-test/*.P
|
||||||
|
Loading…
Reference in New Issue
Block a user