From 1de8edac1a868ce564dbcb28f5ed52fab4f8ec61 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 2 Aug 2024 22:58:39 +0200 Subject: build(tests): Add complementary scripts --- scripts/test_interactive.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/test_interactive.sh (limited to 'scripts/test_interactive.sh') diff --git a/scripts/test_interactive.sh b/scripts/test_interactive.sh new file mode 100755 index 0000000..d309799 --- /dev/null +++ b/scripts/test_interactive.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env sh + +tast_target="$1" + +[ -z "$test_target" ] && { + echo "You need to select a test target!" 1>&2 + echo "Usage: test_interactive TEST_TARGET" 1>&2 + exit 1 +} + +nix build .#checks.x86_64-linux."$tast_target".driver + +./result/bin/nixos-test-driver --interactive + +# vim: ft=sh -- cgit 1.4.1