mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 11:04:35 +00:00
* redirect both stdout and stderr bash: >& and &> dash: command > file 2>&1 or command 2>&1 | othercommand Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
17 lines
597 B
Text
17 lines
597 B
Text
TST = $(shell cat zdtm-tst-list)
|
|
CFLAGS += -D_GNU_SOURCE
|
|
|
|
.FORCE:
|
|
|
|
zdtm_ns: $(shell echo "$(TST)" | tr ' ' '\n' | awk '/^ns\// && !/ns\/user/ {print}')
|
|
zdtm_ns_user: $(shell echo "$(TST)" | tr ' ' '\n' | awk '/^ns\/user/ {print}')
|
|
zdtm_nons: $(shell echo "$(TST)" | tr ' ' '\n' | awk '!/^ns\// {print}')
|
|
|
|
$(TST): zdtm_ct mount_cgroups .FORCE
|
|
./zdtm.sh --ct ${ZDTM_ARGS} -r $(@) > $(subst /,_,$@).log 2>&1; \
|
|
{ ret=$$?; fname=$(subst /,_,$@).log; flock Makefile cat $$fname; unlink $$fname; exit $$ret; }
|
|
|
|
mount_cgroups: .FORCE
|
|
flock zdtm_mount_cgroups ./zdtm_mount_cgroups
|
|
|
|
zdtm_ct: zdtm_ct.c
|