X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fscripts%2Ffunctions;h=c544183f17d997e87b7bde6645b54771a93750af;hb=46ca5543e540fe87ace0d6b2b104a6147b4d1a7e;hp=a2d22457a127db70b55abde37c59862532d2b5bb;hpb=9e8daf88171bb17868c81c3cd70e8b9cc80262de;p=bacula%2Fbacula diff --git a/regress/scripts/functions b/regress/scripts/functions index a2d22457a1..c544183f17 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -4,6 +4,12 @@ start_test() { + # Turn off email + outf="tmp/sed_tmp" + echo "s% mail =%# mail = %g" >${outf} + echo "s% operator =%# operator =%g" >>${outf} + cp bin/bacula-dir.conf tmp/1 + sed -f ${outf} tmp/1 >bin/bacula-dir.conf echo " " echo " " echo " === Starting $TestName at `date +%R:%S` ===" @@ -117,6 +123,21 @@ run_bscan() fi } +bscan_libdbi() +{ + B=`echo $LIBDBI | sed 's/;//' | sed 's/;//g'` + B_D=`echo $B | awk '{print $3}'` + B_t=`echo $B | awk '{print $6}'` + B_p=`echo $B | awk '{print $9}'` + + BSCANLIBDBI="${LIBDBI:+1}" + + if test "$BSCANLIBDBI" = "1" ; then + BSCANLIBDBI="-D $B_D -h $B_t -t $B_p" + else + BSCANLIBDBI=" " + fi +} stop_bacula() { @@ -205,7 +226,7 @@ end_test() else echo " ===== $TestName OK `date +%R:%S` ===== " echo " ===== $TestName OK `date +%R:%S` ===== " >>test.out - if [ $debug -eq 0 ] ; then + if test "$debug" -eq 0 ; then scripts/cleanup fi fi @@ -231,6 +252,16 @@ debug_wait() fi } +init_drive() +{ + if test a$USE_FAKETAPE = a; then + mt -f $1 rewind + mt -f $1 weof + else + cp /dev/null $1 + fi +} + # Save current directory cwd=`pwd` if test "x${REGRESS_DEBUG}" = "x1"; then