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