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

all: tests

tests-start:
	(cd $(INSTDIR)/tests &&	../../test/scripts/light-system-test-start.sh)

tests-stop:
	(cd $(INSTDIR)/tests &&	../../test/scripts/light-system-test-stop.sh)

tests-makemk:
	$(PREFIX)/tools/compileconfig.py --config=$(PREFIX)/test/catlfish-test.cfg --testshellvars=$(PREFIX)/test/test.shvars --machines 1

tests: basic-tests

basic-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)

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