]> git.sur5r.net Git - bacula/bacula/commitdiff
Don't enable SUN compiler by default and make the configdir configurable.
authorMarco van Wieringen <mvw@planets.elm.net>
Sat, 17 Oct 2009 15:05:17 +0000 (17:05 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Sun, 18 Oct 2009 11:14:06 +0000 (13:14 +0200)
regress/run_bacula_regression

index b20979191ed5e2628faa73cf9f8ef4c15fcaf8de..0c8dcfd54c5f323f1ff8f50f9ee7dbe201202dcc 100755 (executable)
@@ -18,14 +18,19 @@ BACULA_REGRESS_HOME="/bacula_regress"
 export BACULA_REGRESS_HOME
 
 #
-# Lets use the SUN compiler
+# Directory where regress config templates are stored per db type.
 #
-CC="/usr/bin/cc"
-CXX="/usr/bin/CC"
-CFLAGS="-fast"
-CXXFLAGS="-fast"
+CONFIG_DIR="/root/configs"
 
-export CC CXX CFLAGS CXXFLAGS
+#
+# Lets use the SUN compiler
+#
+#CC="/usr/bin/cc"
+#CXX="/usr/bin/CC"
+#CFLAGS="-fast"
+#CXXFLAGS="-fast"
+#
+#export CC CXX CFLAGS CXXFLAGS
 
 #
 # Regression script to run
@@ -51,8 +56,8 @@ run_sqlite3_regression()
    #
    # Run regression using sqlite3
    #
-   if [ -f /root/configs/config.sqlite3 ]; then
-      ln -sf /root/configs/config.sqlite3 config
+   if [ -f ${CONFIG_DIR}/config.sqlite3 ]; then
+      ln -sf ${CONFIG_DIR}/config.sqlite3 config
       if [ $? = 0 ]; then
          run_regression
       fi
@@ -64,8 +69,8 @@ run_postgresql_regression()
    #
    # Run regression using postgresql
    #
-   if [ -f /root/configs/config.postgresql ]; then
-      ln -sf /root/configs/config.postgresql config
+   if [ -f ${CONFIG_DIR}/config.postgresql ]; then
+      ln -sf ${CONFIG_DIR}/config.postgresql config
       if [ $? = 0 ]; then
          run_regression
       fi
@@ -77,8 +82,8 @@ run_mysql_regression()
    #
    # Run regression using mysql
    #
-   if [ -f /root/configs/config.mysql ]; then
-      ln -sf /root/configs/config.mysql config
+   if [ -f ${CONFIG_DIR}/config.mysql ]; then
+      ln -sf ${CONFIG_DIR}/config.mysql config
       if [ $? = 0 ]; then
          run_regression
       fi