mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-11-22 05:32:28 +00:00
20a2715203
evaluate script and script to cut off CPM text files at ctrl-z (EOF)
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
|