bin/ai/regression/run.sh
branchnoai
changeset 9470 4593c953a276
parent 9469 7072beb81014
child 9481 39ba1c349d3d
--- a/bin/ai/regression/run.sh	Sun Mar 18 23:59:07 2007 +0000
+++ b/bin/ai/regression/run.sh	Mon Mar 19 00:00:26 2007 +0000
@@ -1,16 +1,11 @@
 #!/bin/sh
 
-if ! [ -f ai/regression/main.nut ]; then
+if ! [ -f ai/regression/regression.nut ]; then
 	echo "Make sure you are in the root of OpenTTD before starting this script."
 	exit 1
 fi
 
-if [ -n "`cat ai/regression/main.nut | grep '//iFRegression <-FRegression();'`" ]; then
-	echo "Enable the Regression AI before starting the regression test."
-	echo "Also disable any other AI. Check main.nut in ai/regression for"
-	echo "more information about this."
-	exit 1
-fi
+cp ai/regression/regression.nut ai/regression/main.nut
 
 ./openttd -a regression -x -c ai/regression/regression.cfg -snull -mnull -vnull -g ai/regression/regression.sav | awk '{ gsub("0x\\(nil\\)", "0x00000000", $0); print $0; }' > tmp.regression
 res="`diff -u ai/regression/regression.txt tmp.regression`"
@@ -23,6 +18,8 @@
 echo ""
 echo "Regression test done"
 
+rm ai/regression/main.nut
+
 if [ "$1" != "-k" ]; then
 	rm -f tmp.regression
 fi