summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-04 20:45:34 +0200
committerChristian Breunig <christian@breunig.cc>2024-09-05 07:13:08 +0200
commit388efd9f7847a21782e7dd98581beeabb1a0f0ba (patch)
treeb4f05a9938d9f6dfb5bfc1c3683eb22f7e19cdcb
parentd50707bb295dbd4bc50e3d0301fc8be605448429 (diff)
downloadvyos-build-388efd9f7847a21782e7dd98581beeabb1a0f0ba.tar.gz
vyos-build-388efd9f7847a21782e7dd98581beeabb1a0f0ba.zip
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.
-rw-r--r--Makefile17
1 files 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: