The configure script now puts out the correct help message stating that sound default...
[crack-attack.git] / mkbuildtests.sh
blob14cf562cde265e1ec5266985d885310d19e85ffc
1 #!/bin/bash
3 MAKE='make clean && make && make install'
4 echo "Running autogen.sh"
5 ./autogen.sh --prefix=`pwd`/inst &> /dev/null
6 # Default build test
7 echo "Testing default build"
8 (./configure --prefix=`pwd`/inst \
9 && make clean && make && make install) &> /dev/null
10 echo "Game should start with GUI"
11 ./inst/bin/crack-attack > /dev/null
12 echo "Ensuring relocatable..."
13 mv ./inst ./moved_inst
14 echo "Game should start with GUI"
15 ./moved_inst/bin/crack-attack > /dev/null
16 echo "Game should start in a solo game"
17 ./moved_inst/bin/crack-attack --solo > /dev/null
18 mv ./moved_inst ./inst
20 echo "Testing no gui"
21 (./configure --prefix=`pwd`/inst --disable-gtk \
22 && make clean && make && make install) &> /dev/null
23 echo "Game should fail to start [and show usage]"
24 ./inst/bin/crack-attack > /dev/null
25 echo "Game should start with solo low extreme game"
26 ./inst/bin/crack-attack -1 -X > /dev/null
28 echo "Testing no relocatable"
29 (./configure --prefix=`pwd`/inst --disable-binreloc \
30 && make clean && make && make install) &> /dev/null
31 echo "Game should start with solo low extreme game"
32 ./inst/bin/crack-attack -1 -X > /dev/null
33 mv ./inst ./moved_inst
34 echo "Game should fail to start [due to missing shared files]"
35 ./moved_inst/bin/crack-attack -1 -X > /dev/null
36 mv ./moved_inst ./inst
38 echo "Testing for Gentoo \"bump\" ability"
39 rm -rf ./inst
40 (./configure --prefix=`pwd`/inst --bindir=`pwd`/inst/mybin \
41 --datadir=`pwd`/inst/sharingiscaring --disable-binreloc \
42 && make clean && make && make install) &> /dev/null
43 echo "Game should start with solo low extreme game"
44 ./inst/mybin/crack-attack -1 -X > /dev/null
45 echo "GUI should start. Make sure to start a solo game"
46 ./inst/mybin/crack-attack > /dev/null