Skip to content

Commit

Permalink
Run manual integration tests as part of ./testing/run
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Dec 9, 2024
1 parent 3cd98ab commit eb2c8ea
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions testing/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -euxo pipefail

SKIP_MANUAL=${SKIP_MANUAL:-}

# Integration tests

INTEGRATION_TEST_DIR="$(dirname "$(realpath "$0")")/integration"
Expand All @@ -9,6 +11,19 @@ for TEST_DEF in $(ls "$INTEGRATION_TEST_DIR"/*.nix); do
NIXPKGS_ALLOW_UNFREE=1 nix-build "$TEST_DEF"
done

# Manual integration tests

MANUAL_TEST_DIR="$(dirname "$(realpath "$0")")/manual"

if [ -z "$SKIP_MANUAL" ]; then
for TEST_DEF in $(ls "$MANUAL_TEST_DIR"/*.nix); do
outDir=$(nix-build -A driverInteractive "$TEST_DEF")
"${outDir}/bin/nixos-test-driver" --no-interactive
done
else
echo "Skipping manual tests"
fi

# Kiosk browser

pushd "$(dirname "$(realpath "$0")")/../kiosk"
Expand Down

0 comments on commit eb2c8ea

Please sign in to comment.