-test-gamesFrom Globulation2-test-games is a new testing functionality included with Globulation 2 since 0.9.3 (Beta 3). It enables countless hours of testing and bug finding without needing to play a single game. This makes it easy to find as many bugs as possible and fix them, to provide the most stable release we can. Giszmo has created some scripts that do automated testing using the -test-games-nox (the testing command without using the GUI (faster)), and makes it log info when a crash occurs. With them, you can leave the game running 24/7 and catch up to 10 crashes (limited to save space). If you want to help with testing, follow these steps (designed for Linux users only): Contentsgdb Commands
run -test-games-nox bt bt full q Run Glob2 Tests
#!/bin/bash
trap bashtrap INT
bashtrap()
{
killall -9 glob2
exit
}
X=0
#max 10 bug reports as infinite repeation might result in nasty waste of resource
while [ $X -le 10 ] ; do
echo $X crashes so far in round $1 ...
gdb -x gdbCommands src/glob2 > gdbOutput.txt
mkdir crash$1$X
mv gdbOutput.txt crash$1$X/
mv ~/.glob2/games/Auto_save.game ~/.glob2/games/crashed$1$X.game
bzip2 --compress --keep -9 crash$1$X/gdbOutput.txt
bzip2 --compress --keep -9 ~/.glob2/games/crashed$1$X.game
mv ~/.glob2/games/crashed$1$X.game.bz2 crash$1$X/
zenity --info --text="crash" &
X=$(($X+1))
done
Update source code automatically
#!/bin/bash
trap bashtrap INT
bashtrap()
{
killall runGlob2Tests.sh
exit
}
cd /home/leo/projects/glob2_2
X=0
./runGlob2Tests.sh $X &
while true ; do
hg pull http://hg.globulation2.org/glob2
hg update -C -r beta3-rc
killall runGlob2Tests.sh
killall -9 glob2
scons -j4
X=$(($X+1))
./runGlob2Tests.sh $X &
sleep $(( 60*30 ))
done
Putting it all together
./runGlob2TestsWithGHAndScons.sh
./runGlob2Tests.sh Future Automated Script ideas
| ||