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