3 MAKE
='make clean && make && make install'
4 echo "Running autogen.sh"
5 .
/autogen.sh
--prefix=`pwd`/inst
> /dev
/null
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
21 (.
/configure
--prefix=`pwd`/inst
--disable-gtk \
22 && make clean
&& make && make install) > /dev
/null
23 echo "Game should fail to start"
24 .
/inst
/bin
/crack-attack
> /dev
/null
25 echo "Game should start with solo low extreme game"
26 .
/inst
/bin
/crack-attack
-1 -X --solo > /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 --solo > /dev
/null
33 mv .
/inst .
/moved_inst
34 echo "Game should fail to start"
35 .
/inst
/bin
/crack-attack
-1 -X --solo > /dev
/null
36 mv .
/moved_inst .
/inst