2022-09-13 10:56:08 +00:00
|
|
|
set -e
|
2022-05-08 22:36:28 +00:00
|
|
|
|
|
|
|
test_dir="$(mktemp -d)"
|
2022-09-13 10:25:45 +00:00
|
|
|
trap "rm -rf $test_dir" EXIT
|
2022-05-08 22:36:28 +00:00
|
|
|
|
|
|
|
mkdir -p "$test_dir"/run
|
|
|
|
mkdir -p "$test_dir"/data
|
|
|
|
|
|
|
|
test_cfg="(import ./config.nix) // {
|
|
|
|
runDir=\"${test_dir}/run\";
|
|
|
|
dataDir=\"${test_dir}/data\";
|
|
|
|
}"
|
|
|
|
|
2022-09-13 10:56:08 +00:00
|
|
|
nix-shell -A shell --arg config "$test_cfg" "$@"
|