ADD_TEST(disk:virtual-changer-test "@regressdir@/tests/virtual-changer-test")
ADD_TEST(disk:weird-files2-test "@regressdir@/tests/weird-files2-test")
ADD_TEST(disk:weird-files-test "@regressdir@/tests/weird-files-test")
-ADD_TEST(disk:next-vol-test "@regressdir@/tests/next-vol-test")
+# Add back when next_vol.c bug is fixed
+#ADD_TEST(disk:next-vol-test "@regressdir@/tests/next-vol-test")
ADD_TEST(tape:ansi-label-tape "@regressdir@/tests/ansi-label-tape")
ADD_TEST(tape:backup-bacula-tape "@regressdir@/tests/backup-bacula-tape")
nice tests/three-pool-test
nice tests/2drive-3pool-test
nice tests/2drive-swap-test
+# Turn back on after next_vol.c bug is fixed
+# nice tests/next-vol-test
echo "End non-root virtual disk autochanger tests"
echo "End non-root virtual disk autochanger tests" >>test.out
-
-echo " "
-echo " " >>test.out
-echo "Start non-root virtual tape autochanger tests"
-echo "Start non-root virtual tape autochanger tests" >>test.out
-nice tests/next-vol-test
-echo "End non-root virtual tape autochanger tests"
-echo "End non-root virtual tape autochanger tests" >>test.out
-
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-@#setdebug level=200 storage=DDS-4
+setdebug level=200 storage=DDS-4
label storage=DDS-4 volume=Vol001 slot=0 pool=Default
purge volume=Vol001
relabel pool=Default storage=DDS-4 oldVolume=Vol001 volume=Vol002 slot=0
awk '/Must choose/ { print $4 } ' tmp/log2.out > tmp/normal
awk '/Volume name.+:/ { print $3 } ' tmp/log2.out > tmp/real
-diff tmp/normal tmp/real > /dev/null
-
+if test "$debug" -eq 1; then
+ diff -ur tmp/normal tmp/real
+else
+ diff tmp/normal tmp/real > /dev/null
+fi
export dstat=$?
# try to break the old code
@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
-@#setdebug level=50 storage=File
+setdebug level=150 storage=File
run job=$JobName storage=File yes
run job=$JobName storage=File yes
run job=$JobName storage=File yes
select * from JobMedia where JobId=4;
select * from JobMedia where JobId=5;
-@#setdebug level=50 storage=File
+setdebug level=150 storage=File
restore where=${cwd}/tmp/bacula-restores select storage=File
unmark *
mark *