]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/all-tape-tests
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / all-tape-tests
index ab43bb28dec8e8cfff41d4225db6b192fbe7fa9e..5ecd21bec2f7df97ed962eb1c0fbf5da6ee0cd3e 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 #
-# Run all tape tests
+# Copyright (C) 2000-2017 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+# ./run all tape tests
 #
 . ./config
 
 # If we have an autoloader, load the tape in slot1
 if test ! x$AUTOCHANGER = x/dev/null ; then
    a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1`
-   if test $a = 0 ; then
+   if test $a -eq 0 ; then
       bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
    fi
 fi
 echo " "
 echo " " >>test.out
+if test x$FORCE_DEDUP = xyes ; then
+   echo "All tape tests skipped for FORCE_DEDUP"
+   exit 0
+fi
+if test x$FORCE_ALIGNED = xyes ; then
+   echo "All tape tests skipped for FORCE_ALIGNED"
+   exit 0
+fi
+if test x$FORCE_CLOUD = xyes ; then
+   echo "All tape tests skipped for FORCE_CLOUD"
+   exit 0
+fi
 echo "Start all non-root tape tests"
 echo "Start all non-root tape tests" >>test.out
-nice tests/ansi-label-tape
-nice tests/backup-bacula-tape
-nice tests/bscan-tape
-nice tests/fixed-block-size-tape
-nice tests/four-concurrent-jobs-tape
-nice tests/four-jobs-tape
-nice tests/incremental-tape
-nice tests/relabel-tape
-nice tests/restore-by-file-tape
-nice tests/small-file-size-tape
-nice tests/truncate-bug-tape
-nice tests/verify-vol-tape
+rm -f dumps/*
+./run tests/ansi-label-tape
+./run tests/backup-bacula-tape
+./run tests/bscan-tape
+./run tests/fixed-block-size-tape
+./run tests/four-concurrent-jobs-tape
+./run tests/four-jobs-tape
+./run tests/incremental-tape
+./run tests/relabel-tape
+./run tests/restore-by-file-tape
+./run tests/small-file-size-tape
+./run tests/truncate-bug-tape
+./run tests/verify-vol-tape
+# ./run tests/manual-two-vol-tape
 echo "End all non-root tape tests"
 echo "End all non-root tape tests" >>test.out