@@ -19,41 +19,41 @@ mountOverlayfs
19
19
# ## Check status
20
20
21
21
# Checking for path in lower layer
22
- stat $( toRealPath " $storeA /nix/store" " $pathInLowerStore " )
22
+ stat " $( toRealPath " $storeA /nix/store" " $pathInLowerStore " ) "
23
23
24
24
# Checking for path in upper layer (should fail)
25
- expect 1 stat $( toRealPath " $storeBTop " " $pathInLowerStore " )
25
+ expect 1 stat " $( toRealPath " $storeBTop " " $pathInLowerStore " ) "
26
26
27
27
# Checking for path in overlay store matching lower layer
28
- diff $( toRealPath " $storeA /nix/store" " $pathInLowerStore " ) $( toRealPath " $storeBRoot /nix/store" " $pathInLowerStore " )
28
+ diff " $( toRealPath " $storeA /nix/store" " $pathInLowerStore " ) " " $( toRealPath " $storeBRoot /nix/store" " $pathInLowerStore " ) "
29
29
30
30
# Checking requisites query agreement
31
31
[[ \
32
- $( nix-store --store $storeA --query --requisites $drvPath ) \
32
+ $( nix-store --store " $storeA " --query --requisites " $drvPath " ) \
33
33
== \
34
- $( nix-store --store $storeB --query --requisites $drvPath ) \
34
+ $( nix-store --store " $storeB " --query --requisites " $drvPath " ) \
35
35
]]
36
36
37
37
# Checking referrers query agreement
38
- busyboxStore=$( nix store --store $storeA add-path $busybox )
38
+ busyboxStore=$( nix store --store " $storeA " add-path " $busybox " )
39
39
[[ \
40
- $( nix-store --store $storeA --query --referrers $busyboxStore ) \
40
+ $( nix-store --store " $storeA " --query --referrers " $busyboxStore " ) \
41
41
== \
42
- $( nix-store --store $storeB --query --referrers $busyboxStore ) \
42
+ $( nix-store --store " $storeB " --query --referrers " $busyboxStore " ) \
43
43
]]
44
44
45
45
# Checking derivers query agreement
46
46
[[ \
47
- $( nix-store --store $storeA --query --deriver $pathInLowerStore ) \
47
+ $( nix-store --store " $storeA " --query --deriver " $pathInLowerStore " ) \
48
48
== \
49
- $( nix-store --store $storeB --query --deriver $pathInLowerStore ) \
49
+ $( nix-store --store " $storeB " --query --deriver " $pathInLowerStore " ) \
50
50
]]
51
51
52
52
# Checking outputs query agreement
53
53
[[ \
54
- $( nix-store --store $storeA --query --outputs $drvPath ) \
54
+ $( nix-store --store " $storeA " --query --outputs " $drvPath " ) \
55
55
== \
56
- $( nix-store --store $storeB --query --outputs $drvPath ) \
56
+ $( nix-store --store " $storeB " --query --outputs " $drvPath " ) \
57
57
]]
58
58
59
59
# Verifying path in lower layer
@@ -62,10 +62,10 @@ nix-store --verify-path --store "$storeA" "$pathInLowerStore"
62
62
# Verifying path in merged-store
63
63
nix-store --verify-path --store " $storeB " " $pathInLowerStore "
64
64
65
- hashPart=$( echo $pathInLowerStore | sed " s^${NIX_STORE_DIR:-/ nix/ store} /^^" | sed ' s/-.*//' )
65
+ hashPart=$( echo " $pathInLowerStore " | sed " s^${NIX_STORE_DIR:-/ nix/ store} /^^" | sed ' s/-.*//' )
66
66
67
67
# Lower store can find from hash part
68
- [[ $( nix store --store $storeA path-from-hash-part $hashPart ) == $pathInLowerStore ]]
68
+ [[ $( nix store --store " $storeA " path-from-hash-part " $hashPart " ) == " $pathInLowerStore " ]]
69
69
70
70
# merged store can find from hash part
71
- [[ $( nix store --store $storeB path-from-hash-part $hashPart ) == $pathInLowerStore ]]
71
+ [[ $( nix store --store " $storeB " path-from-hash-part " $hashPart " ) == " $pathInLowerStore " ]]
0 commit comments