1
0
Fork 0
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:
John Ericson 2023-05-15 23:00:18 -04:00
parent 97deb00cbc
commit 5d18120ba8
8 changed files with 81 additions and 39 deletions

View file

@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -eu -o pipefail
set -x
source common.sh
storeDirs
initLowerStore
mountOverlayfs
### Do a build in overlay store
path=$(nix-build ../hermetic.nix --arg busybox $busybox --arg seed 2 --store "$storeB" --no-out-link)
# Checking for path in lower layer (should fail)
expect 1 stat $(toRealPath "$storeA/nix/store" "$path")
# Checking for path in upper layer
stat $(toRealPath "$storeBTop" "$path")
# Verifying path in overlay store
nix-store --verify-path --store "$storeB" "$path"