(svn r9330) [NoAI] -Add: added -r as param for regression run.sh script to start the game, so you can check if it build what we expected him to for yourself noai
authortruelight
Mon, 19 Mar 2007 13:29:28 +0000
branchnoai
changeset 9481 39ba1c349d3d
parent 9480 d071f885f918
child 9482 5e0418292ecc
(svn r9330) [NoAI] -Add: added -r as param for regression run.sh script to start the game, so you can check if it build what we expected him to for yourself
bin/ai/regression/run.sh
--- a/bin/ai/regression/run.sh	Mon Mar 19 13:14:20 2007 +0000
+++ b/bin/ai/regression/run.sh	Mon Mar 19 13:29:28 2007 +0000
@@ -7,7 +7,11 @@
 
 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
+params=""
+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
 res="`diff -u ai/regression/regression.txt tmp.regression`"
 if [ -z "$res" ]; then
 	echo "Regression test passed!"