Browse Source

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

pull/1/head
Gavin Andresen 10 years ago
parent
commit
8f09e4cac4
  1. 5
      src/makefile.mingw
  2. 3
      src/makefile.osx
  3. 3
      src/makefile.unix

5
src/makefile.mingw

@ -83,6 +83,9 @@ OBJS= \ @@ -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: @@ -102,3 +105,5 @@ clean:
-del /Q obj\*
-del /Q obj-test\*
-del /Q build.h
FORCE:

3
src/makefile.osx vendored

@ -116,6 +116,9 @@ endif @@ -116,6 +116,9 @@ endif
all: bitcoind
test check: test_bitcoin FORCE
./test_bitcoin
# auto-generated dependencies:
-include obj/*.P
-include obj-test/*.P

3
src/makefile.unix

@ -132,6 +132,9 @@ OBJS= \ @@ -132,6 +132,9 @@ OBJS= \
all: bitcoind
test check: test_bitcoin FORCE
./test_bitcoin
# auto-generated dependencies:
-include obj/*.P
-include obj-test/*.P

Loading…
Cancel
Save