mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
67c6f3eded
This makes all the tests succeed. Woohoo!
21 lines
594 B
Bash
21 lines
594 B
Bash
source common.sh
|
|
|
|
# Note: this test expects to be run *after* nix-push.sh.
|
|
|
|
drvPath=$(nix-instantiate ./dependencies.nix)
|
|
outPath=$(nix-store -q $drvPath)
|
|
|
|
clearStore
|
|
clearProfiles
|
|
|
|
cat > $TEST_ROOT/foo.nixpkg <<EOF
|
|
NIXPKG1 file://$TEST_ROOT/cache/MANIFEST simple $system $drvPath $outPath
|
|
EOF
|
|
|
|
nix-install-package --non-interactive -p $profiles/test $TEST_ROOT/foo.nixpkg
|
|
test "$(nix-env -p $profiles/test -q '*' | wc -l)" -eq 1
|
|
|
|
clearProfiles
|
|
|
|
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
|