mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +02:00
More tests
This commit is contained in:
parent
5059be53b1
commit
8339c170d7
1 changed files with 13 additions and 5 deletions
|
@ -55,18 +55,26 @@ expect 1 stat $(toRealPath "$storeBTop" "$path")
|
||||||
# Checking for path in overlay store matching lower layer
|
# Checking for path in overlay store matching lower layer
|
||||||
diff $(toRealPath "$storeA/nix/store" "$path") $(toRealPath "$TEST_ROOT/merged-store/nix/store" "$path")
|
diff $(toRealPath "$storeA/nix/store" "$path") $(toRealPath "$TEST_ROOT/merged-store/nix/store" "$path")
|
||||||
|
|
||||||
# Verifying path in lower layer
|
# Checking derivers query agreement
|
||||||
nix-store --verify-path --store "$storeA" "$path"
|
[[ \
|
||||||
|
$(nix-store --store $storeA --query --deriver $path) \
|
||||||
# Verifying path in merged-store
|
== \
|
||||||
nix-store --verify-path --store "$storeB" "$path"
|
$(nix-store --store $storeB --query --deriver $path) \
|
||||||
|
]]
|
||||||
|
|
||||||
|
# Checking outputs query agreement
|
||||||
[[ \
|
[[ \
|
||||||
$(nix-store --store $storeA --query --outputs $drvPath) \
|
$(nix-store --store $storeA --query --outputs $drvPath) \
|
||||||
== \
|
== \
|
||||||
$(nix-store --store $storeB --query --outputs $drvPath) \
|
$(nix-store --store $storeB --query --outputs $drvPath) \
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
# Verifying path in lower layer
|
||||||
|
nix-store --verify-path --store "$storeA" "$path"
|
||||||
|
|
||||||
|
# Verifying path in merged-store
|
||||||
|
nix-store --verify-path --store "$storeB" "$path"
|
||||||
|
|
||||||
hashPart=$(echo $path | sed "s^$NIX_STORE_DIR/^^" | sed 's/-.*//')
|
hashPart=$(echo $path | sed "s^$NIX_STORE_DIR/^^" | sed 's/-.*//')
|
||||||
|
|
||||||
# Lower store can find from hash part
|
# Lower store can find from hash part
|
||||||
|
|
Loading…
Add table
Reference in a new issue