From 3da1a284dc2620cf3c4a1e962cb53e415444ab2d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 2 Feb 2020 17:51:47 +0100 Subject: Jenkins: add "make test" helper --- Jenkinsfile | 2 +- Makefile | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 326c03e8..0d5cd65c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -178,7 +178,7 @@ pipeline { stage('Test ISO') { steps { sh """ - sudo scripts/check-qemu-install --debug build/live-image-amd64.hybrid.iso + sudo make test """ } } diff --git a/Makefile b/Makefile index 6c22fd4a..2bceac58 100644 --- a/Makefile +++ b/Makefile @@ -220,6 +220,15 @@ vep1400: check_build_config clean prepare cd .. @scripts/copy-image +.PHONY: test +.ONESHELL: +test: + if [ ! -f build/live-image-amd64.hybrid.iso ]; then + echo "Could not find build/live-image-amd64.hybrid.iso" + exit 1 + fi + scripts/check-qemu-install --debug build/live-image-amd64.hybrid.iso + .PHONY: clean .ONESHELL: clean: -- cgit v1.2.3