mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
0979a374c5
The bad-uris tests are now in their own file. "Outer" is a bad name, but it will be split up next.
25 lines
771 B
Bash
25 lines
771 B
Bash
source common.sh
|
|
|
|
requireEnvironment
|
|
setupConfig
|
|
storeDirs
|
|
|
|
mkdir -p $TEST_ROOT/bad_test
|
|
badTestRoot=$TEST_ROOT/bad_test
|
|
storeBadRoot="local-overlay?root=$badTestRoot&lower-store=$storeA&upper-layer=$storeBTop"
|
|
storeBadLower="local-overlay?root=$TEST_ROOT/merged-store&lower-store=$badTestRoot&upper-layer=$storeBTop"
|
|
storeBadUpper="local-overlay?root=$TEST_ROOT/merged-store&lower-store=$storeA&upper-layer=$badTestRoot"
|
|
|
|
declare -a storesBad=(
|
|
"$storeBadRoot" "$storeBadLower" "$storeBadUpper"
|
|
)
|
|
|
|
for i in "${storesBad[@]}"; do
|
|
echo $i
|
|
unshare --mount --map-root-user bash <<EOF
|
|
source common.sh
|
|
storeDirs
|
|
mountOverlayfs
|
|
expectStderr 1 nix doctor --store "$i" | grepQuiet "overlay filesystem .* mounted incorrectly"
|
|
EOF
|
|
done
|