mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-11-29 05:49:26 +00:00
17 lines
474 B
Bash
17 lines
474 B
Bash
|
#!/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
|