tests/run-tests.sh: print examples before running

This eases debugging example failures.
This commit is contained in:
Erik Arvstedt 2022-10-22 19:37:51 +02:00
parent 5f1bb2a8fc
commit 450de19803
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 7 additions and 6 deletions

View File

@ -305,13 +305,14 @@ buildable() {
}
examples() {
script="
script='
set -e
./deploy-container.sh
./deploy-container-minimal.sh
./deploy-qemu-vm.sh
./deploy-krops.sh
"
runExample() { echo; echo Running example $1; ./$1; }
runExample deploy-container.sh
runExample deploy-container-minimal.sh
runExample deploy-qemu-vm.sh
runExample deploy-krops.sh
'
(cd "$scriptDir/../examples" && nix-shell --run "$script")
}