# A set of useful functions to be sourced in each test
#
+
start_test()
{
# Turn off email
fi
}
+require_vtape()
+{
+if test x${USE_VTAPE} = x ; then
+ echo "$TestName test needs the vtape driver."
+ exit 1
+fi
+}
skip_if_no_autochanger()
{
fi
}
+init_slot()
+{
+ DRIVE=$1
+ SLOT=$2
+ if test -n "$DRIVE" -a -n "$SLOT"; then
+ if test ! -c $DRIVE -a ! -b $DRIVE -a x$USE_VTAPE != x ; then
+ dir=`dirname $DRIVE`
+ touch $dir/slot$SLOT
+ fi
+ fi
+}
+
init_drive()
{
- if test a$USE_FAKETAPE = a; then
+ if test a$USE_VTAPE = a; then
mt -f $1 rewind
mt -f $1 weof
else
# Source the configuration variables
. ${cwd}/config
+
+CLIENT=${HOST}-fd
+AUTOCHANGER_SCRIPT=${AUTOCHANGER_SCRIPT:-mtx-changer}