mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 00:07:39 +01:00
Do not build unit tests by default with make (#233).
This commit is contained in:
parent
e70f0d999f
commit
9c03be08da
2 changed files with 49 additions and 33 deletions
6
Makefile
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
|
||||||
|
|
74
README.md
74
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
|
||||||
---------------
|
---------------
|
||||||
|
@ -117,35 +129,35 @@ i2p.conf:
|
||||||
|
|
||||||
tunnels.cfg (filename of this config is subject of change):
|
tunnels.cfg (filename of this config is subject of change):
|
||||||
|
|
||||||
; outgoing tunnel sample, to remote service
|
; outgoing tunnel sample, to remote service
|
||||||
; mandatory parameters:
|
; mandatory parameters:
|
||||||
; * type -- always "client"
|
; * type -- always "client"
|
||||||
; * port -- local port to listen to
|
; * port -- local port to listen to
|
||||||
; * destination -- i2p hostname
|
; * destination -- i2p hostname
|
||||||
; optional parameters (may be omitted)
|
; optional parameters (may be omitted)
|
||||||
; * keys -- our identity, if unset, will be generated on every startup,
|
; * keys -- our identity, if unset, will be generated on every startup,
|
||||||
; if set and file missing, keys will be generated and placed to this file
|
; if set and file missing, keys will be generated and placed to this file
|
||||||
; * address -- address to listen on, 127.0.0.1 by default
|
; * address -- address to listen on, 127.0.0.1 by default
|
||||||
[IRC]
|
[IRC]
|
||||||
type = client
|
type = client
|
||||||
port = 6668
|
port = 6668
|
||||||
destination = irc.echelon.i2p
|
destination = irc.echelon.i2p
|
||||||
keys = irc-keys.dat
|
keys = irc-keys.dat
|
||||||
|
|
||||||
; incoming tunnel sample, for local service
|
; incoming tunnel sample, for local service
|
||||||
; mandatory parameters:
|
; mandatory parameters:
|
||||||
; * type -- always "server"
|
; * type -- always "server"
|
||||||
; * host -- ip address of our service
|
; * host -- ip address of our service
|
||||||
; * port -- port of our service
|
; * port -- port of our service
|
||||||
; * keys -- file with LeaseSet of address in i2p
|
; * keys -- file with LeaseSet of address in i2p
|
||||||
; optional parameters (may be omitted)
|
; optional parameters (may be omitted)
|
||||||
; * inport -- optional, i2p service port, if unset - the same as 'port'
|
; * inport -- optional, i2p service port, if unset - the same as 'port'
|
||||||
; * accesslist -- comma-separated list of i2p addresses, allowed to connect
|
; * accesslist -- comma-separated list of i2p addresses, allowed to connect
|
||||||
; every address is b32 without '.b32.i2p' part
|
; every address is b32 without '.b32.i2p' part
|
||||||
[LOCALSITE]
|
[LOCALSITE]
|
||||||
type = server
|
type = server
|
||||||
host = 127.0.0.1
|
host = 127.0.0.1
|
||||||
port = 80
|
port = 80
|
||||||
keys = site-keys.dat
|
keys = site-keys.dat
|
||||||
inport = 81
|
inport = 81
|
||||||
accesslist = <b32>[,<b32>]
|
accesslist = <b32>[,<b32>]
|
||||||
|
|
Loading…
Add table
Reference in a new issue