# HG changeset patch # User truelight # Date 1174310968 0 # Node ID 39ba1c349d3d422ad1db921d1cec76a40090f87b # Parent d071f885f918c9e92833ede120bef5aa2582a788 (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 diff -r d071f885f918 -r 39ba1c349d3d 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!"