diff options
author | tv <tv@krebsco.de> | 2016-02-16 07:41:26 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-16 07:41:26 +0100 |
commit | 18ac722ee6d85ba0d01f8cd3d04bca5b59843af8 (patch) | |
tree | 41179753d74566e825202786129d0d0d1e9ccd5a | |
parent | 439f913348f6135e0fd99d4e580a67a602bd72df (diff) |
make test using nix-build
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |