summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-16 07:41:26 +0100
committertv <tv@krebsco.de>2016-02-16 07:41:26 +0100
commit18ac722ee6d85ba0d01f8cd3d04bca5b59843af8 (patch)
tree41179753d74566e825202786129d0d0d1e9ccd5a
parent439f913348f6135e0fd99d4e580a67a602bd72df (diff)
make test using nix-build
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e1889fc17..7126332da 100644
--- a/Makefile
+++ b/Makefile
@@ -73,3 +73,10 @@ install:
$(ssh) $(target_user)@$(target_host) -p $(target_port) \
env NIXOS_CONFIG=$(target_path)/nixos-config \
nixos-install
+
+# usage: make test system=foo [target=bar]
+test:
+ $(call execute,populate)
+ ssh $(target_user)@$(target_host) -p $(target_port) \
+ nix-build --no-out-link --show-trace -I $(target_path) \
+ -A config.system.build.toplevel $(target_path)/stockholm