3 # Small wrapper script for doing Bacula regression
4 # You will undoubtedly need to edit this to make it
5 # work on your configuration
9 # Set this if you need to post via a proxy
11 #http_proxy="http://proxy.planets.elm.net:3128"
15 # Set this to the regression area where a git clone is put.
17 BACULA_REGRESS_HOME="/bacula_regress"
18 export BACULA_REGRESS_HOME
21 # Lets use the SUN compiler
28 export CC CXX CFLAGS CXXFLAGS
31 # Regression script to run
33 REGRESSION_SCRIPT="./nightly-disk"
37 screen -S bacula_regression -d -m ${REGRESSION_SCRIPT}
40 count=`screen -list 2>/dev/null | grep -c bacula_regression`
41 if [ ${count} -lt 1 ]; then
49 run_sqlite3_regression()
52 # Run regression using sqlite3
54 if [ -f /root/configs/config.sqlite3 ]; then
55 ln -sf /root/configs/config.sqlite3 config
62 run_postgresql_regression()
65 # Run regression using postgresql
67 if [ -f /root/configs/config.postgresql ]; then
68 ln -sf /root/configs/config.postgresql config
75 run_mysql_regression()
78 # Run regression using mysql
80 if [ -f /root/configs/config.mysql ]; then
81 ln -sf /root/configs/config.mysql config
90 echo "Usage: $0 <action>"
91 echo "Where action is :"
92 echo " all - run sqlite3, postgresql and mysql regressions."
93 echo " sqlite3 - run sqlite3 regressions."
94 echo " postgresql - run postgresql regressions."
95 echo " mysql - run mysql regressions."
100 if [ $# -lt 1 ]; then
107 cd ${BACULA_REGRESS_HOME}/regress || exit 1
111 run_sqlite3_regression
112 run_postgresql_regression
116 run_sqlite3_regression
119 run_postgresql_regression