Browse Source

Do not build unit tests by default with make (#233).

pull/237/head
EinMByte 9 years ago
parent
commit
9c03be08da
  1. 6
      Makefile
  2. 12
      README.md

6
Makefile

@ -23,10 +23,12 @@ else # win32
DAEMON_SRC += DaemonWin32.cpp DAEMON_SRC += DaemonWin32.cpp
endif endif
all: mk_build_dir $(SHLIB) $(I2PD) $(TESTS) all: mk_build_dir $(SHLIB) $(I2PD)
tests: mk_build_test_dir $(TESTS)
mk_build_dir: mk_build_dir:
mkdir -p obj mkdir -p obj
mk_build_test_dir:
mkdir -p obj/tests mkdir -p obj/tests
api: $(SHLIB) api: $(SHLIB)
@ -74,8 +76,10 @@ dist:
--prefix=i2pd_$(LATEST_TAG)/ $(LATEST_TAG) -o i2pd_$(LATEST_TAG).tar.gz --prefix=i2pd_$(LATEST_TAG)/ $(LATEST_TAG) -o i2pd_$(LATEST_TAG).tar.gz
.PHONY: all .PHONY: all
.PHONY: tests
.PHONY: clean .PHONY: clean
.PHONY: deps .PHONY: deps
.PHONY: dist .PHONY: dist
.PHONY: api .PHONY: api
.PHONY: mk_build_dir .PHONY: mk_build_dir
.PHONY: mk_build_test_dir

12
README.md

@ -66,6 +66,18 @@ After that, go to the webconsole and add it behind the url. (Remove http:// from
This should resulting in for example: This should resulting in for example:
http://localhost:7070/4oes3rlgrpbkmzv4lqcfili23h3cvpwslqcfjlk6vvguxyggspwa.b32.i2p http://localhost:7070/4oes3rlgrpbkmzv4lqcfili23h3cvpwslqcfjlk6vvguxyggspwa.b32.i2p
Building Unit Tests
-------------------
To build unit tests, you'll need to install the boost unit test framework.
On Ubuntu/Debian based
* sudo apt-get install libboost-test-dev
To build the tests, run
$ make tests
Cmdline options Cmdline options
--------------- ---------------

Loading…
Cancel
Save