mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Makefile: add common helper to check if ISO was build before running tests
(cherry picked from commit c5dee499abaf729dc9388c0b86530c0d09fd9fd1)
This commit is contained in:
parent
a48cd47509
commit
596a0fdf67
26
Makefile
26
Makefile
@ -250,40 +250,32 @@ xcp-ng-iso: check_build_config clean prepare
|
||||
@scripts/copy-image
|
||||
exit 0
|
||||
|
||||
.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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user