summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: f3112089123385411b1274fd65dd57035c7a9ed4 (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
PREFIX=..
INSTDIR=$(PREFIX)/catlfish

tests-start:
	./scripts/light-system-test-start.sh

tests-stop:
	./scripts/light-system-test-stop.sh

tests-wait:
	sleep 5

tests-makemk:
	cat $(PREFIX)/test/catlfish-test.cfg.in | sed 's/@[A-Z0-9-]*@//' > $(PREFIX)/test/catlfish-test.cfg
	$(PREFIX)/tools/compileconfig.py --config=$(PREFIX)/test/catlfish-test.cfg --testshellvars=$(PREFIX)/test/test.shvars --machines 1

tests:
	@make tests-makemk
	rm -r $(INSTDIR)/tests || true
	mkdir $(INSTDIR)/tests
	(cd $(INSTDIR)/tests &&	../../test/scripts/light-system-test.sh)

perf-tests:
	@make tests-makemk
	rm -r $(INSTDIR)/tests || true
	mkdir $(INSTDIR)/tests
	(cd $(INSTDIR)/tests &&	../../test/scripts/perf-test.sh)