mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
* chore: make sure output directory is right in test * chore: make --no-profile work again
15 lines
402 B
Bash
Executable File
15 lines
402 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Runs the executable and compares its output to the .expected file
|
|
export CARP_OPTS="$CARP_OPTS $1 --log-memory -b --no-profile"
|
|
./scripts/carp.sh && \
|
|
./out/Untitled > test/output/$1.output.actual 2>&1
|
|
echo $1
|
|
|
|
if ! diff --strip-trailing-cr test/output/$1.output.actual test/output/$1.output.expected; then
|
|
echo "$1 failed."
|
|
exit 1
|
|
else
|
|
rm test/output/$1.output.actual
|
|
fi
|