--- a/bin/ai/regression/run.sh Sun Mar 25 13:22:18 2007 +0000
+++ b/bin/ai/regression/run.sh Sun Mar 25 13:32:14 2007 +0000
@@ -11,7 +11,7 @@
if [ "$1" != "-r" ]; then
params="-snull -mnull -vnull"
fi
-./openttd -a regression -x -c ai/regression/regression.cfg $params -g ai/regression/regression.sav | awk '{ gsub("0x\\(nil\\)", "0x00000000", $0); print $0; }' > tmp.regression
+./openttd -a regression -x -c ai/regression/regression.cfg $params -g ai/regression/regression.sav 2>tmp.stderr | awk '{ gsub("0x\\(nil\\)", "0x00000000", $0); print $0; }' > tmp.regression
res="`diff -u ai/regression/regression.txt tmp.regression`"
if [ -z "$res" ]; then
echo "Regression test passed!"
@@ -20,9 +20,15 @@
echo "$res"
fi
echo ""
+stderr="`cat tmp.stderr`"
+if [ -n "$stderr" ]; then
+ echo "OpenTTD gave this on stderr:"
+ echo "$stderr"
+fi
+echo ""
echo "Regression test done"
-rm ai/regression/main.nut
+rm -f ai/regression/main.nut tmp.stderr
if [ "$1" != "-k" ]; then
rm -f tmp.regression