]> git.sur5r.net Git - bacula/bacula/blob - regress/win32/tests/btape-fill-tape
Updates
[bacula/bacula] / regress / win32 / 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 quit
23 END_OF_DATA
24
25 run_btape DDS-4
26
27 grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
28 if [ $? != 0 ] ; then
29    echo " "
30    echo " "
31    echo "  !!!!! btape fill test failed!!! !!!!! "
32    echo "  !!!!! btape fill test failed!!! !!!!! " >>test.out
33    echo " "
34 else
35    echo "  ===== btape fill test OK ===== "
36    echo "  ===== btape fill test OK ===== " >>test.out
37 #  scripts/cleanup
38 fi