crane/extra-tests/test.sh
2022-05-29 15:43:58 -07:00

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}