diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-09 10:14:02 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-09 11:13:17 +0100 |
commit | c5dee499abaf729dc9388c0b86530c0d09fd9fd1 (patch) | |
tree | 67eb0f317ed2bea517d22952631b15b07a18a05b /Makefile | |
parent | 77cc894fd83b40010e55a30d2c5bbed18e9f3313 (diff) | |
download | vyos-build-c5dee499abaf729dc9388c0b86530c0d09fd9fd1.tar.gz vyos-build-c5dee499abaf729dc9388c0b86530c0d09fd9fd1.zip |
Makefile: add common helper to check if ISO was build before running tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 9 insertions, 17 deletions
@@ -88,40 +88,32 @@ vep1400: check_build_config clean prepare cd .. @scripts/copy-image -.PHONY: test +.PHONY: checkiso .ONESHELL: -test: +checkiso: if [ ! -f build/live-image-amd64.hybrid.iso ]; then echo "Could not find build/live-image-amd64.hybrid.iso" exit 1 fi + +.PHONY: test +.ONESHELL: +test: checkiso scripts/check-qemu-install --debug --uefi build/live-image-amd64.hybrid.iso .PHONY: test-no-interfaces .ONESHELL: -test-no-interfaces: - if [ ! -f build/live-image-amd64.hybrid.iso ]; then - echo "Could not find build/live-image-amd64.hybrid.iso" - exit 1 - fi +test-no-interfaces: checkiso scripts/check-qemu-install --debug --no-interfaces build/live-image-amd64.hybrid.iso .PHONY: testd .ONESHELL: -testd: - if [ ! -f build/live-image-amd64.hybrid.iso ]; then - echo "Could not find build/live-image-amd64.hybrid.iso" - exit 1 - fi +testd: checkiso scripts/check-qemu-install --debug --configd build/live-image-amd64.hybrid.iso .PHONY: testc .ONESHELL: -testc: - if [ ! -f build/live-image-amd64.hybrid.iso ]; then - echo "Could not find build/live-image-amd64.hybrid.iso" - exit 1 - fi +testc: checkiso scripts/check-qemu-install --debug --configd --configtest build/live-image-amd64.hybrid.iso .PHONY: clean |