]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/run_bacula_regression
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / run_bacula_regression
index b20979191ed5e2628faa73cf9f8ef4c15fcaf8de..420bd5432b6d032ebcc58691bab967ea20087b79 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/ksh
+5B#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
 #
 # Small wrapper script for doing Bacula regression
 #   You will undoubtedly need to edit this to make it 
@@ -18,14 +21,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 +59,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 +72,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 +85,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