about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/test_build.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/test_build.sh b/scripts/test_build.sh
new file mode 100755
index 0000000..eeb8572
--- /dev/null
+++ b/scripts/test_build.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env sh
+
+[ "$#" -ne 2 ] && {
+    echo "Usage: test_build <TEST_TARGET> <BUILD_NODE>" 1>&2
+    exit 2
+}
+
+test_target="$1"
+build_node="$2"
+
+nix build .#checks.x86_64-linux."$test_target".nodes."$build_node".system.build.toplevel
+
+# vim: ft=sh