Browse Source

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

0.8
Gavin Andresen 12 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= \
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:

3
src/makefile.osx vendored

@ -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

3
src/makefile.unix

@ -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…
Cancel
Save