summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-02 17:51:47 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-02 17:51:47 +0100
commit3da1a284dc2620cf3c4a1e962cb53e415444ab2d (patch)
tree66b2fa23a5997aabd2616829ff58f4a0ea37f6c8
parent47647d40164b81c02367499ad3a0a9eb67029c8c (diff)
downloadvyos-build-3da1a284dc2620cf3c4a1e962cb53e415444ab2d.tar.gz
vyos-build-3da1a284dc2620cf3c4a1e962cb53e415444ab2d.zip
Jenkins: add "make test" helper
-rw-r--r--Jenkinsfile2
-rw-r--r--Makefile9
2 files changed, 10 insertions, 1 deletions
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: