2006-09-21 18:54:08 +00:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
# Note: this test expects to be run *after* nix-push.sh.
|
|
|
|
|
2011-10-10 21:32:34 +00:00
|
|
|
drvPath=$(nix-instantiate ./dependencies.nix)
|
|
|
|
outPath=$(nix-store -q $drvPath)
|
2006-09-21 18:54:08 +00:00
|
|
|
|
|
|
|
clearStore
|
|
|
|
clearProfiles
|
|
|
|
|
|
|
|
cat > $TEST_ROOT/foo.nixpkg <<EOF
|
2012-07-26 22:28:12 +00:00
|
|
|
NIXPKG1 file://$TEST_ROOT/cache/MANIFEST simple $system $drvPath $outPath
|
2006-09-21 18:54:08 +00:00
|
|
|
EOF
|
|
|
|
|
2011-10-10 21:32:34 +00:00
|
|
|
nix-install-package --non-interactive -p $profiles/test $TEST_ROOT/foo.nixpkg
|
|
|
|
test "$(nix-env -p $profiles/test -q '*' | wc -l)" -eq 1
|
2006-09-21 18:54:08 +00:00
|
|
|
|
|
|
|
clearProfiles
|
|
|
|
|
2011-10-10 21:32:34 +00:00
|
|
|
nix-install-package --non-interactive -p $profiles/test --url file://$TEST_ROOT/foo.nixpkg
|
|
|
|
test "$(nix-env -p $profiles/test -q '*' | wc -l)" -eq 1
|