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