]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/btape-fill-full-tape
Updates
[bacula/bacula] / regress / win32 / tests / btape-fill-full-tape
1 #!/bin/sh
2 #
3 # Test the fill command in btape
4 #
5 TestName="btape-fill-full-tape"
6 JobName=AutoLabel
7 . scripts/functions
8 set_debug 0
9
10 scripts/copy-tape-confs
11 scripts/cleanup-tape
12
13 change_jobname $JobName
14 start_test
15
16 bin/btape -c bin/bacula-sd.conf DDS-4 <<END_OF_DATA 2>&1 >tmp/log1.out
17 fill
18 s
19
20 quit
21 END_OF_DATA
22
23
24 grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
25 if [ $? != 0 ] ; then
26    echo " "
27    echo " "
28    echo "  !!!!! btape fill test failed!!! !!!!! "
29    echo "  !!!!! btape fill test failed!!! !!!!! " >>test.out
30    echo " "
31 else
32    echo "  ===== btape fill test OK ===== "
33    echo "  ===== btape fill test OK ===== " >>test.out
34 #  scripts/cleanup
35 fi