From: Eric Bollengier Date: Tue, 24 Jun 2008 18:56:22 +0000 (+0000) Subject: ebl Simplify vtape usage X-Git-Tag: Release-3.0.0~1241 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=15e9dd43a3ff9fa1a5ef59628271913353f5822e;p=bacula%2Fbacula ebl Simplify vtape usage git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7224 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/create_sed b/regress/scripts/create_sed index 350a31a2ea..7cc4e0ef21 100755 --- a/regress/scripts/create_sed +++ b/regress/scripts/create_sed @@ -3,7 +3,7 @@ # Create the sed file for configuring everything # cwd=`pwd` -. ${cwd}/config +. ${cwd}/scripts/functions mkdir -p ${cwd}/bin mkdir -p ${cwd}/tmp out="${cwd}/tmp/sed_tmp" diff --git a/regress/scripts/do_sed b/regress/scripts/do_sed index 3fb34ff9e8..0294c98308 100755 --- a/regress/scripts/do_sed +++ b/regress/scripts/do_sed @@ -1,7 +1,7 @@ #!/bin/sh # cwd=`pwd` -. ${cwd}/config +. ${cwd}/scripts/functions mkdir -p ${cwd}/bin out="${cwd}/tmp/sed_tmp" diff --git a/regress/scripts/functions b/regress/scripts/functions index b76f70f5b0..8d6f6d9252 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -309,4 +309,21 @@ db_user=${db_user:-"regress"} db_password=${db_password:-""} CLIENT=${HOST}-fd + +if [ x$USE_VTAPE = xyes ]; then + mkdir -p $cwd/working/ach + SLOT1=1 + SLOT2=2 + TAPE_DRIVE=$cwd/working/ach/drive1 + TAPE_DRIVE1=$cwd/working/ach/drive1 + AUTOCHANGER=$cwd/working/ach/config + AUTOCHANGER_SCRIPT=disk-changer + DRIVE1=0 + DRIVE2=1 + cat > AUTOCHANGER <