summaryrefslogtreecommitdiffstats
path: root/Makefile
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
commitbe6baa050d6a047a9e2885b08c297ef3e1d802b4 (patch)
treec92246a1fb7d3750694d75c4286c9dab6bc24ffd /Makefile
parent1cc6a3d9738bde6290dec7e6ea0bc6c163b85181 (diff)
make test using nix-build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e1889fc..7126332 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