ADD_TEST(changer:incremental-changer "@regressdir@/tests/incremental-changer")
ADD_TEST(changer:two-pool-changer "@regressdir@/tests/two-pool-changer")
ADD_TEST(changer:two-volume-changer "@regressdir@/tests/two-volume-changer")
-ADD_TEST(changer:two-vol-manual-tape "@regressdir@/tests/two-vol-manual-tape")
+# ADD_TEST(changer:two-vol-manual-tape "@regressdir@/tests/two-vol-manual-tape")
ADD_TEST(changer:vol-duration-changer "@regressdir@/tests/vol-duration-changer")
ADD_TEST(2drive-changer:2drive-incremental-changer "@regressdir@/tests/2drive-incremental-changer")
nice tests/small-file-size-tape
nice tests/truncate-bug-tape
nice tests/verify-vol-tape
-nice tests/two-vol-manual-tape
+# nice tests/two-vol-manual-tape
echo "End all non-root tape tests"
echo "End all non-root tape tests" >>test.out
fi
}
+load_slot1()
+{
+# Get a tape from slot1
+slot=`bin/$MTX ${AUTOCHANGER} loaded 0 ${TAPE_DRIVE} $DRIVE1`
+case $slot in
+ 0)
+ bin/$MTX ${AUTOCHANGER} load $SLOT1 ${TAPE_DRIVE} $DRIVE1
+ slot=$SLOT1
+ ;;
+ $SLOT1)
+ slot=$SLOT1
+ ;;
+ *)
+ rewind_drive ${TAPE_DRIVE}
+ bin/$MTX ${AUTOCHANGER} unload $slot ${TAPE_DRIVE} $DRIVE1
+ bin/$MTX ${AUTOCHANGER} load $SLOT1 ${TAPE_DRIVE} $DRIVE1
+ slot=$SLOT1
+ ;;
+esac
+}
#
# $1 has currently loaded slot, load the other one i.e. if 1, load 2;
init_slot $TAPE_DRIVE $SLOT1
init_slot $TAPE_DRIVE $SLOT2
-# Get a tape from slot1
-slot=`bin/$MTX ${AUTOCHANGER} loaded 0 ${TAPE_DRIVE} $DRIVE1`
-case $slot in
- 0)
- bin/$MTX ${AUTOCHANGER} load $SLOT1 ${TAPE_DRIVE} $DRIVE1
- slot=$SLOT1
- ;;
- $SLOT1)
- slot=$SLOT1
- ;;
- *)
- rewind_drive ${TAPE_DRIVE}
- bin/$MTX ${AUTOCHANGER} unload $slot ${TAPE_DRIVE} $DRIVE1
- bin/$MTX ${AUTOCHANGER} load $SLOT1 ${TAPE_DRIVE} $DRIVE1
- slot=$SLOT1
- ;;
-esac
+load_slot1
init_drive ${TAPE_DRIVE}
@$out tmp/log1.out
label storage=DDS-4 volume=TestVolume002 slot=0 pool=Default drive=0
unmount storage=DDS-4
+quit
END_OF_DATA
run_bacula
+# Load slot2
load_other_slot $slot
init_drive ${TAPE_DRIVE}
run_bconsole
+
load_other_slot $slot
init_drive ${TAPE_DRIVE}