crane/extra-tests/test.sh
Ivan Petkov 418ec86477
mkDummySrc: fix cleaning to work with Nix store overrides (#448)
* Turns out if a build is invoked with `--store` then the source
  cleaning filter will observe paths rooted at the alternative store
  which breaks out previous string handling (and results in incorrectly
  ignoring files which should be included)
2023-11-05 18:32:24 +00:00

27 lines
438 B
Bash
Executable File

#!/bin/sh
set -eu
anyFailed=0
runTest() {
local testPath="$1"
if ${testPath}; then
echo "pass: ${testPath}"
else
echo "fail: ${testPath}"
anyFailed=1
fi
}
scriptPath=$(dirname "$0")
cd "${scriptPath}"
runTest ./alt-store/test.sh
runTest ./dummy-does-not-depend-on-flake-source-via-path/test.sh
runTest ./dummy-does-not-depend-on-flake-source-via-self/test.sh
runTest ./fetch-cargo-git/test.sh
exit ${anyFailed}