From 388efd9f7847a21782e7dd98581beeabb1a0f0ba Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 4 Sep 2024 20:45:34 +0200 Subject: Makefile: T861: add possibility to pass CLI options to check-qemu-install We can now pass any arbitrary option to the check-qemu-install script by calling: make test -- --bar-option or make testc -- --foo-option please note the -- which is not a typo but rather signals the end of options and disables further option processing and passes the options down to the next script. --- Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 48225d6c..34381bd3 100644 --- a/Makefile +++ b/Makefile @@ -31,28 +31,29 @@ test-no-interfaces: checkiso .PHONY: testc .ONESHELL: testc: checkiso - scripts/check-qemu-install --debug --configd --configtest build/live-image-amd64.hybrid.iso + scripts/check-qemu-install --debug --configd --configtest build/live-image-amd64.hybrid.iso $(filter-out $@,$(MAKECMDGOALS)) .PHONY: testraid .ONESHELL: testraid: checkiso - scripts/check-qemu-install --debug --configd --raid --configtest build/live-image-amd64.hybrid.iso + scripts/check-qemu-install --debug --configd --raid --configtest build/live-image-amd64.hybrid.iso $(filter-out $@,$(MAKECMDGOALS)) + +.PHONY: testtpm +.ONESHELL: +testtpm: checkiso + scripts/check-qemu-install --debug --tpmtest build/live-image-amd64.hybrid.iso $(filter-out $@,$(MAKECMDGOALS)) .PHONY: qemu-live .ONESHELL: qemu-live: checkiso - scripts/check-qemu-install --qemu-cmd build/live-image-amd64.hybrid.iso + scripts/check-qemu-install --qemu-cmd --uefi build/live-image-amd64.hybrid.iso $(filter-out $@,$(MAKECMDGOALS)) + .PHONE: oci .ONESHELL: oci: checkiso scripts/iso-to-oci build/live-image-amd64.hybrid.iso -.PHONY: testtpm -.ONESHELL: -testtpm: checkiso - scripts/check-qemu-install --debug --tpmtest build/live-image-amd64.hybrid.iso - .PHONY: clean .ONESHELL: clean: -- cgit v1.2.3