From 91cbc193fe727aff0d01f770d6ec5ec7f3927d46 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 19 Jun 2008 10:50:35 +0000 Subject: [PATCH] Nothing git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7171 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/prepare-fake-autochanger | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 regress/scripts/prepare-fake-autochanger diff --git a/regress/scripts/prepare-fake-autochanger b/regress/scripts/prepare-fake-autochanger new file mode 100755 index 0000000000..dba8ef400d --- /dev/null +++ b/regress/scripts/prepare-fake-autochanger @@ -0,0 +1,42 @@ +#!/bin/sh +# +# This script will prepare a big dummy autochanger +# + +. scripts/functions + +# check if user wants to run this test +if test x$USE_FAKETAPE = x; then + exit 1 +fi + +adir=/home/kern/bacula/Branch-2.4/regress/working/ach + +mkdir $adir 2> /dev/null +rm -f $adir/log $adir/barcodes $adir/load* $adir/slot* $adir/drive* 2> /dev/null + +# create the autochanger configuration file +cat > $adir/conf <> $adir/barcodes + cp /dev/null $adir/slot$i +done + +# make a cleaning tape +echo 76:CLN01 >> $adir/barcodes +cp /dev/null $adir/slot76 + +# keep other empty +for i in `seq 77 79`; do + echo $i: >> $adir/barcodes +done + -- 2.39.2