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 | be6baa050d6a047a9e2885b08c297ef3e1d802b4 (patch) | |
tree | c92246a1fb7d3750694d75c4286c9dab6bc24ffd /Makefile | |
parent | 1cc6a3d9738bde6290dec7e6ea0bc6c163b85181 (diff) |
make test using nix-build
Diffstat (limited to 'Makefile')
-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 |