]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/pretest
Add missing copy-plugin-confs for regress
[bacula/bacula] / regress / scripts / pretest
index 369b2a7506ce31cddaa493d7c47316b2ace719a6..06c1ebe5751a14b0ad1d6c2298aa6c26db1db645 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
 #
 #  Test if daemons start
 #
@@ -21,33 +26,44 @@ start_test
 
 run_bacula
 if [ $? -ne 0 ]; then
-   echo "Error: bconsole error"
-   error=1
+   echo "Error: Starting Bacula Failed in pretest"
+   make distclean
+   make setup
+   exit 1
 fi
 
 bin/bacula-ctl-dir status >/dev/null
 if [ $? -ne 0 ]; then
    echo "Error: bacula-dir failed to start"
-   error=1
+   make distclean
+   make setup
+   exit 1
 fi
 
 bin/bacula-ctl-fd status >/dev/null
 if [ $? -ne 0 ]; then
    echo "Error: bacula-fd failed to start"
-   error=1
+   make distclean
+   make setup
+   exit 1
 fi
 
 bin/bacula-ctl-sd status >/dev/null
 if [ $? -ne 0 ]; then
    echo "Error: bacula-sd failed to start"
-   error=1
+   make distclean
+   make setup
+   exit 1
 fi
 
 stop_bacula
 
-export dstat=0
-export bstat=$error
-export rstat=0
+dstat=0
+bstat=$error
+rstat=0
+export dstat
+export bstat
+export rstat
 
 end_test