]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/btape-fill-tape
Update
[bacula/bacula] / regress / tests / btape-fill-tape
1 #!/bin/sh
2 #
3 # Test the fill command in btape
4 #
5 TestName="btape-fill-tape"
6 JobName=filltape
7 . scripts/functions
8 set_debug 0
9
10 copy_tape_confs
11
12 echo "${cwd}/build" >/tmp/file-list
13
14 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
15 sed "s%# MaximumVolumeSize%  MaximumVolumeSize%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
16
17 start_test
18
19 cat <<END_OF_DATA >tmp/bconcmds
20 fill
21 s
22
23 quit
24 END_OF_DATA
25
26 run_btape DDS-4
27
28 grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
29 if [ $? != 0 ] ; then
30    echo " "
31    echo " "
32    echo "  !!!!! btape fill test failed!!! !!!!! "
33    echo "  !!!!! btape fill test failed!!! !!!!! " >>test.out
34    echo " "
35 else
36    echo "  ===== btape fill test OK ===== "
37    echo "  ===== btape fill test OK ===== " >>test.out
38 #  scripts/cleanup
39 fi