+ export zstat
+}
+
+require_root()
+{
+MUID=`/usr/bin/id | awk -F= '{print $2}' | awk -F\( '{print $1}'`
+if [ $MUID != 0 ] ; then
+ echo " "
+ echo "You must be root to run this test."
+ echo " ===== !!!! $TestName not run at `date +%R:%S` ==="
+ echo " ===== !!!! $TestName not run at `date +%R:%S` !!!! ===== " >>test.out
+ echo " "
+ exit 1
+fi
+}
+
+require_tape_drive()
+{
+if test x${TAPE_DRIVE} = x/dev/null ; then
+ echo "$TestName test needs a tape drive, but has none."
+ exit 1
+fi
+}
+
+require_second_drive()
+{
+if test x${TAPE_DRIVE1} = x/dev/null ; then
+ echo "$JobName needs second drive, but has none."
+ exit 1
+fi
+}
+
+require_autochanger()
+{
+if test x${AUTOCHANGER} = x/dev/null ; then
+ echo "$TestName needs an autochanger, but has none."
+ exit 1
+fi
+}
+
+
+skip_if_no_autochanger()
+{
+if test x${AUTOCHANGER} = x/dev/null ; then
+ echo "$TestName test skipped. No autochanger."
+ exit
+fi