X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fall-tape-tests;h=a99ad9234859f0fae52e62e41645be119d390992;hb=3fc0a7996e02d26aa6d2fd7894a5fac0f17f3474;hp=184ab88a334ee5e6fc5a0e38f187bc3861d85fde;hpb=3d965f90f9cda611ebadf4950cceb8a426dba86a;p=bacula%2Fbacula diff --git a/regress/all-tape-tests b/regress/all-tape-tests index 184ab88a33..a99ad92348 100755 --- a/regress/all-tape-tests +++ b/regress/all-tape-tests @@ -2,29 +2,33 @@ # # Run all tape tests # -. ./config.out +. ./config + +# +# If we have an autoloader, load the tape in slot1 if test ! x$AUTOCHANGER = x/dev/null ; then - mtx -f $AUTOCHANGER load 1 >/dev/null &2>/dev/null + a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1` + if test $a = 0 ; then + bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1 + fi fi echo " " echo " " >>test.out -echo "Start all tape tests" -echo "Start all tape tests" >>test.out -nice tests/ansi-label-1t1d-tape -nice tests/backup-bacula-1t1d-tape -#nice tests/btape-fill-full-tape -nice tests/fixed-block-size-1t1d-tape -nice tests/four-concurrent-jobs-1t1d-tape -nice tests/four-jobs-1t1d-tape -nice tests/incremental-1t1d-tape -nice tests/relabel-1t1d-tape -nice tests/restore-by-file-1t1d-tape -nice tests/small-file-size-1t1d-tape -nice tests/truncate-bug-1t1d-tape -nice tests/two-pool-2t1da-tape -nice tests/2drive-incremental-2t2da-tape -nice tests/bscan-1t1d-tape -nice tests/verify-vol-1t1d-tape -#nice tests/vol-duration-2t1da-tape -echo "End all tape tests" -echo "End all tape tests" >>test.out +echo "Start all non-root tape tests" +echo "Start all non-root tape tests" >>test.out +rm -f dumps/* +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 +# nice tests/manual-two-vol-tape +echo "End all non-root tape tests" +echo "End all non-root tape tests" >>test.out