tests: add example scripts
This commit is contained in:
+17
-1
@@ -202,13 +202,29 @@ basic() {
|
||||
pkgsUnstable
|
||||
}
|
||||
|
||||
all() {
|
||||
# All tests that only consist of building a nix derivation.
|
||||
# Their output is cached in /nix/store.
|
||||
buildable() {
|
||||
basic
|
||||
scenario=full buildTest "$@"
|
||||
scenario=regtest buildTest "$@"
|
||||
scenario=hardened buildTest "$@"
|
||||
}
|
||||
|
||||
examples() {
|
||||
script="
|
||||
set -e
|
||||
./deploy-container.sh
|
||||
./deploy-qemu-vm.sh
|
||||
"
|
||||
(cd $scriptDir/../examples && nix-shell --run "$script")
|
||||
}
|
||||
|
||||
all() {
|
||||
buildable
|
||||
examples
|
||||
}
|
||||
|
||||
# An alias for buildTest
|
||||
build() {
|
||||
buildTest "$@"
|
||||
|
||||
Reference in New Issue
Block a user