diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh index 0ab69db22..549840767 100644 --- a/tests/nix-profile.sh +++ b/tests/nix-profile.sh @@ -13,7 +13,7 @@ cat > $flake1Dir/flake.nix < ∅' nix profile diff-closures | grep 'Version 3 -> 4' +# Test installing a non-flake package. +nix profile install --file ./simple.nix '' +[[ $(cat $TEST_HOME/.nix-profile/hello) = "Hello World!" ]] +nix profile remove 1 +nix profile install $(nix-build --no-out-link ./simple.nix) +[[ $(cat $TEST_HOME/.nix-profile/hello) = "Hello World!" ]] + # Test wipe-history. nix profile wipe-history [[ $(nix profile history | grep Version | wc -l) -eq 1 ]]