Idris2/tests/chez/chez016/run
2021-05-25 11:01:28 +01:00

13 lines
332 B
Plaintext
Executable File

# This test needs to run `idris2` from a sub-folder. Get the absolute path.
if [ "$(uname)" = Darwin ]; then
IDRIS2_EXEC=$(zsh -c 'printf %s "$0:A"' "$1")
else
IDRIS2_EXEC="$(readlink -f -- "$1")"
fi
cd "folder with spaces" || exit
"$IDRIS2_EXEC" --no-color --console-width 0 --no-banner Main.idr < ../input
rm -rf build