mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-12-01 19:49:57 +00:00
17 lines
474 B
Bash
Executable File
17 lines
474 B
Bash
Executable File
#!/bin/bash
|
|
|
|
testsdir="$(realpath --relative-to="$PWD" "$(dirname "${BASH_SOURCE[0]}")")"
|
|
basedir="$(realpath --relative-to="$PWD" "${testsdir}/..")"
|
|
|
|
testname="$1"
|
|
|
|
diff --ignore-trailing-space "${basedir}/${testname}.golden" \
|
|
"${basedir}/${testname}.log" > tmp.result
|
|
exitcode=$?
|
|
test $exitcode -eq 0 \
|
|
&& echo "PASS: ${testname}" >> tmp.result \
|
|
|| echo "FAIL: ${testname}" >> tmp.result
|
|
cat tmp.result
|
|
mv tmp.result "${basedir}/${testname}.result"
|
|
exit $exitcode
|