diff options
| author | Fam Zheng | 2018-07-16 04:00:08 +0200 |
|---|---|---|
| committer | Fam Zheng | 2018-08-15 04:12:35 +0200 |
| commit | ebe95fa09439a8d94d7161e26fab2ed54a0773b9 (patch) | |
| tree | 50bb0c5d8c59b2e81adc774a62a4edb0b20d6939 /tests/vm/Makefile.include | |
| parent | tests: Add centos VM testing (diff) | |
| download | qemu-ebe95fa09439a8d94d7161e26fab2ed54a0773b9.tar.gz qemu-ebe95fa09439a8d94d7161e26fab2ed54a0773b9.tar.xz qemu-ebe95fa09439a8d94d7161e26fab2ed54a0773b9.zip | |
tests: vm: Add vm-clean-all
The images are big. Add a rule to clean up easily.
Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20180716020008.31468-1-famz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'tests/vm/Makefile.include')
| -rw-r--r-- | tests/vm/Makefile.include | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index af19b7a4e6..a5abb569c5 100644 --- a/tests/vm/Makefile.include +++ b/tests/vm/Makefile.include @@ -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 centos IMAGE_FILES := $(patsubst %, tests/vm/%.img, $(IMAGES)) @@ -18,6 +18,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 |
