fixed problem with using -1 and --solo. These flags can't be used together.
[crack-attack.git] / mkbuildtests.sh
blob3f7df2f45a78a9c03fc77e2d9a40639be5ce66bd
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"
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"
35 ./inst/bin/crack-attack -1 -X > /dev/null
36 mv ./moved_inst ./inst