summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
blob: f9c166b8d979881fdf0ff5a299c6e221eb22b175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Use when building for the fist time,
# then `make test` forces a rebuild if local changes
build:
	DOCKERFILE=Dockerfile.dev BUILD_SOFTWARE=1 \
		docker-compose -f build.yml up --force-recreate --remove-orphans

# Rebuild from scratch (to avoid cmake cache)
rebuild:
	DOCKERFILE=Dockerfile.dev BUILD_SOFTWARE=1 \
		REBUILD=1 \
		docker-compose -f build.yml up --force-recreate --remove-orphans

# Force base image creation from scratch
rebase:
	DOCKERFILE=Dockerfile.dev \
		docker-compose -f build.yml build --pull --no-cache

# If local changes, hicn is re-built
test:
	docker-compose -f 1-node.yml up --force-recreate --remove-orphans -d

log:
	docker exec forwarder tail -f -n +1 /tmp/lite_client.log

shell:
	docker exec -it forwarder bash

down:
	docker-compose -f 1-node.yml down

functional:
	sleep 1  # Wait for the forwarder to be ready
	bash config.sh ctrl listeners
	bash config.sh ctrl connections
	bash config.sh ctrl routes