mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-25 02:53:17 +03:00
418ec86477
* 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)
27 lines
438 B
Bash
Executable File
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}
|