]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/btape-fill-full-tape
update
[bacula/bacula] / regress / tests / btape-fill-full-tape
index abcd8fed02b2b975d85c21ca4eddd119d60d9e8c..dc3fcec98cd5cbebe73bc8c9f1e231182e776c5f 100755 (executable)
@@ -2,17 +2,19 @@
 #
 # Test the fill command in btape
 #
-cwd=`pwd`
+TestName="btape-fill-full-tape"
+JobName=AutoLabel
+. scripts/functions
+
+require_tape_drive
+
 scripts/copy-tape-confs
 scripts/cleanup-tape
 
-echo " "
-echo " "
-echo " === Starting btape fill test `date +%R:%S` ==="
-echo " === Starting btape fill test `date +%R:%S` ===" >>working/log
-echo " "
+change_jobname $JobName
+start_test
 
-bin/btape -c bin/bacula-sd.conf DDS-4 <<END_OF_DATA 2>&1 >tmp/log1.out
+bin/btape -c bin/bacula-sd.conf DDS-4 <<END_OF_DATA 2>&1 >${cwd}/tmp/log1.out
 fill
 s
 
@@ -20,7 +22,7 @@ quit
 END_OF_DATA
 
 
-grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
+grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out 2>&1 >/dev/null
 if [ $? != 0 ] ; then
    echo " "
    echo " "