mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-27 02:52:02 +03:00
25 lines
376 B
Bash
Executable File
25 lines
376 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 ./dummy-does-not-depend-on-flake-source-via-path/test.sh
|
|
runTest ./dummy-does-not-depend-on-flake-source-via-self/test.sh
|
|
|
|
exit ${anyFailed}
|