mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 23:06:16 +02:00
Update tests/functional/tarball.sh
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
35bdb9cee7
commit
bd37a70d8f
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ test_tarball .xz xz
|
||||||
test_tarball .gz gzip
|
test_tarball .gz gzip
|
||||||
|
|
||||||
# Test hard links.
|
# Test hard links.
|
||||||
|
# All entries in tree.tar.gz refer to the same file, and all have the same inode when unpacked by GNU tar.
|
||||||
|
# We don't preserve the hard links, because that's an optimization we think is not worth the complexity,
|
||||||
|
# so we only make sure that the contents are copied correctly.
|
||||||
path="$(nix flake prefetch --json "tarball+file://$(pwd)/tree.tar.gz" | jq -r .storePath)"
|
path="$(nix flake prefetch --json "tarball+file://$(pwd)/tree.tar.gz" | jq -r .storePath)"
|
||||||
[[ $(cat "$path/a/b/foo") = bar ]]
|
[[ $(cat "$path/a/b/foo") = bar ]]
|
||||||
[[ $(cat "$path/a/b/xyzzy") = bar ]]
|
[[ $(cat "$path/a/b/xyzzy") = bar ]]
|
||||||
|
|
Loading…
Reference in a new issue