criu/test/Makefile
Tycho Andersen 7ae89758ac tests: remember to clean everything on make clean
If we forget to clean some of this stuff, we can get into strange states
where zdtm.py thinks it has constructed the root, but really hasn't, and
can't construct the root because it partially exists.

v2: kill all the extra debugging crap from v1

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-02-17 13:29:03 +03:00

69 lines
1.4 KiB
Makefile

RM := rm -f --one-file-system
ZDTM_ARGS ?= -C
export ZDTM_ARGS
.FORCE:
all:
$(MAKE) zdtm
$(MAKE) zdtm-pre-dump
$(MAKE) zdtm-snapshot
$(MAKE) zdtm-iter
$(MAKE) zdtm-freezer
.PHONY: all
TESTS = unix-callback mem-snap rpc libcriu mounts/ext security pipes crit socketpairs overlayfs
other: .FORCE
for t in $(TESTS); do \
setsid $(MAKE) -C $$t run || exit 1; \
done \
zdtm: .FORCE
./zdtm.py run -a --parallel 2
zdtm-pre-dump:
./zdtm.py run --pre 2:1 -t zdtm/live/transition/fork -f uns
zdtm-snapshot:
./zdtm.py run --pre 2:1 --snap -t zdtm/live/transition/fork -f uns
zdtm-iter:
./zdtm.py run --iters 3:1 -t zdtm/live/transition/fork -f uns
zdtm-freezer:
./zdtm.py run --test zdtm/live/transition/thread-bomb --pre 3 --freezecg zdtm:t
./zdtm.py run --test zdtm/live/transition/thread-bomb --pre 3 --freezecg zdtm:f
.PHONY: zdtm
fault-injection: .FORCE
$(MAKE) -C fault-injection
.PHONY: fault-injection
override CFLAGS += -D_GNU_SOURCE
clean_root:
$(Q) $(RM) -r ./lib/
$(Q) $(RM) -r ./lib64/
$(Q) $(RM) -r ./tmp
$(Q) $(RM) -r ./etc
$(Q) $(RM) -r ./dev
$(Q) $(RM) -r ./bin
$(Q) $(RM) -r ./sbin
$(Q) $(RM) -r ./proc
$(Q) $(RM) -r ./usr
$(Q) $(RM) -r ./.constructed
clean: clean_root
$(RM) zdtm_ct zdtm-tst-list
$(Q) $(RM) *.log
$(Q) $(RM) -r ./dump/
$(Q) $(MAKE) -C zdtm cleandep clean cleanout
$(Q) $(MAKE) -C libcriu clean
$(Q) $(MAKE) -C rpc clean
$(Q) $(MAKE) -C crit clean
.PHONY: zdtm_ns