]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/btape-fill-full-tape
Final changes
[bacula/bacula] / regress / tests / btape-fill-full-tape
1 #!/bin/sh
2 #
3 # Test the fill command in btape
4 #
5 cwd=`pwd`
6 scripts/copy-tape-confs
7 scripts/cleanup-tape
8
9 echo " "
10 echo " "
11 echo " === Starting btape fill test ==="
12 echo " === Starting btape fill test ===" >>working/log
13 echo " "
14
15 bin/btape -c bin/bacula-sd.conf DDS-4 <<END_OF_DATA 2>&1 >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\." 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