make test using nix-build

This commit is contained in:
tv 2016-02-16 07:41:26 +01:00
parent 439f913348
commit 18ac722ee6

View File

@ -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