tests: vm: Add vm-clean-all
PATCH 1/1 tests: vm: Add vm-clean-all
The images are big. Add a rule to clean up easily.
Suggested-by Philippe Mathieu-Daudé <[email protected]>
Signed-off-by Fam Zheng <[email protected]>
--- tests/vm/Makefile.include | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
tests/vm/Makefile.include +4 -1
@@ -1,6 +1,6 @@ # Makefile for VM tests -.PHONY: vm-build-all +.PHONY: vm-build-all vm-clean-all IMAGES := ubuntu.i386 freebsd netbsd openbsd IMAGE_FILES := $(patsubst %, tests/vm/%.img, $(IMAGES))
@@ -17,6 +17,9 @@ vm-test: vm-build-all: $(addprefix vm-build-, $(IMAGES)) +vm-clean-all: + rm -f $(IMAGE_FILES) + tests/vm/%.img: $(SRC_PATH)/tests/vm/% \ $(SRC_PATH)/tests/vm/basevm.py \ $(SRC_PATH)/tests/vm/Makefile.include
Signature · 1 line
2.17.1
Quoted 1 line · Fam Zheng
The images are big. Add a rule to clean up easily.
Thanks :)
Quoted 12 lines
Suggested-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Fam Zheng <[email protected]>--- tests/vm/Makefile.include | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)tests/vm/Makefile.include +0
-0
tests/vm/Makefile.include line 3
Quoted 4 lines
tests/vm/Makefile.include +1
-1@@ -1,6 +1,6 @@ # Makefile for VM tests -.PHONY: vm-build-all +.PHONY: vm-build-all vm-clean-all
Just noticed none of those are in the "vm-test" help message.
Quoted 5 lines
tests/vm/Makefile.include +0
-0IMAGES := ubuntu.i386 freebsd netbsd openbsd IMAGE_FILES := $(patsubst %, tests/vm/%.img, $(IMAGES))
tests/vm/Makefile.include vm-test: · line 25
Quoted 9 lines
tests/vm/Makefile.include +3
-0@@ -17,6 +17,9 @@ vm-test: vm-build-all: $(addprefix vm-build-, $(IMAGES)) +vm-clean-all: + rm -f $(IMAGE_FILES) + tests/vm/%.img: $(SRC_PATH)/tests/vm/% \ $(SRC_PATH)/tests/vm/basevm.py \ $(SRC_PATH)/tests/vm/Makefile.include
Reviewed-by Philippe Mathieu-Daudé <[email protected]>