test: clean the "test" directory from test/Makefile

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2014-08-26 15:12:58 +04:00 committed by Pavel Emelyanov
parent 5ed2004733
commit 5d9b3612a6
2 changed files with 9 additions and 8 deletions

View file

@ -220,15 +220,10 @@ clean: clean-built
$(Q) $(RM) ./*.img
$(Q) $(RM) ./*.out
$(Q) $(RM) ./*.bin
$(Q) $(RM) -r ./test/dump/
$(Q) $(RM) ./*.gcov ./*.gcda ./*.gcno
$(Q) $(RM) -r ./gcov
$(Q) $(RM) -r ./test/lib/
$(Q) $(RM) -r ./test/lib64/
$(Q) $(RM) protobuf-desc-gen.h
$(Q) $(MAKE) -C test/zdtm cleandep clean cleanout
$(Q) $(MAKE) -C test/libcriu clean
$(Q) $(MAKE) -C test/rpc clean
$(Q) $(MAKE) -C test $@
distclean: clean
$(E) " DISTCLEAN"

View file

@ -31,8 +31,14 @@ override CFLAGS += -D_GNU_SOURCE
zdtm_ct: zdtm_ct.c
clean:
rm -rf zdtm_ct
$(MAKE) -C zdtm $@
$(RM) zdtm_ct
$(Q) $(RM) -r ./lib/
$(Q) $(RM) -r ./lib64/
$(Q) $(RM) -r ./dump/
$(Q) $(RM) *.log
$(Q) $(MAKE) -C zdtm cleandep clean cleanout
$(Q) $(MAKE) -C libcriu clean
$(Q) $(MAKE) -C rpc clean
$(TST): zdtm_ct
./zdtm.sh --ct ${ZDTM_ARGS} $(@) &> $(subst /,_,$@).log || \