mirror of
https://github.com/NixOS/nix
synced 2024-09-20 11:11:03 -04:00
33 lines
536 B
Bash
Executable file
33 lines
536 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
set -x
|
|
|
|
source common.sh
|
|
|
|
# Avoid store dir being inside sandbox build-dir
|
|
unset NIX_STORE_DIR
|
|
unset NIX_STATE_DIR
|
|
|
|
storeDirs
|
|
|
|
initLowerStore
|
|
|
|
mountOverlayfs
|
|
|
|
#path=$(nix-store --store "$storeB" --add ../dummy)
|
|
|
|
path=$(nix-build --store $storeB ../hermetic.nix --arg busybox "$busybox" --arg seed 1)
|
|
|
|
inputDrvPath=$(find "$storeA" -name "*-hermetic-input-1.drv")
|
|
rm -v "$inputDrvPath"
|
|
|
|
#tree "$TEST_ROOT"
|
|
|
|
#rm -v "$TEST_ROOT/store-a/$path"
|
|
|
|
nix-store --store "$storeB" --verify
|
|
|
|
echo "SUCCESS"
|