summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
blob: 0f30d6a42aaacf6be70836e03c5a5184c1fa0b91 (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:
	BASE_IMAGE=hicn DOCKERFILE=Dockerfile.dev BUILD_SOFTWARE=1 \
		docker-compose -f build.yml up --force-recreate --remove-orphans

# Rebuild from scratch (to avoid cmake cache)
rebuild:
	BASE_IMAGE=hicn 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