criu/test/Makefile
Andrey Vagin b95407e264 test: check, that parasite can rollback itself (v2)
This test uses systemtap to replace random parasite command on
invalide command. The parasite code received this command and should
rollback itself. CRIU didn't recived ack, should understand that
something wrong and exits. The systemtap inverts exit code of criu.

"zdtm.sh -d" is used for executing tests and testing that the state of
processes don't corrupted.

criu should be compiled without optimizations (make DEBUG=1)

v2: randomize a command, which will be replaced
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-08-06 15:11:12 +04:00

20 lines
390 B
Makefile

TST = $(shell ./zdtm.sh -l)
EXP = '^ns/(?!.*(tty|pty))'
.FORCE:
all: .FORCE
$(MAKE) zdtm
zdtm: .FORCE
$(MAKE) zdtm_ns
for t in $(shell echo "$(TST)" | tr ' ' '\n' | grep -Pv $(EXP)); do \
$(MAKE) $$t || break; \
done
fault-injection: .FORCE
$(MAKE) -C fault-injection
zdtm_ns: $(shell echo "$(TST)" | tr ' ' '\n' | grep -P $(EXP))
$(TST):
./zdtm.sh $(@) &> $(subst /,_,$@).log