mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Split tests some more
Good for parallelism and easier reading.
This commit is contained in:
parent
97deb00cbc
commit
5d18120ba8
8 changed files with 81 additions and 39 deletions
26
tests/overlay-local-store/redundant-add-inner.sh
Executable file
26
tests/overlay-local-store/redundant-add-inner.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
set -x
|
||||
|
||||
source common.sh
|
||||
|
||||
storeDirs
|
||||
|
||||
initLowerStore
|
||||
|
||||
mountOverlayfs
|
||||
|
||||
### Do a redundant add
|
||||
|
||||
# upper layer should not have it
|
||||
expect 1 stat $(toRealPath "$storeBTop/nix/store" "$path")
|
||||
|
||||
path=$(nix-store --store "$storeB" --add ../dummy)
|
||||
|
||||
# lower store should have it from before
|
||||
stat $(toRealPath "$storeA/nix/store" "$path")
|
||||
|
||||
# upper layer should still not have it (no redundant copy)
|
||||
expect 1 stat $(toRealPath "$storeB/nix/store" "$path")
|
Loading…
Add table
Add a link
Reference in a new issue