3 # Cleanup left over files -- both before and after test run
5 # Write an EOF on tape in slot $SLOT1 and on tape in $SLOT2
12 # with disk-changer, we have to initialize slots
13 init_slot @tape_drive@ $SLOT1
14 init_slot @tape_drive@ $SLOT2
17 # init first of two slots
18 # optimize so we don't unnecessarily unload and load slots
20 if test x@autochanger@ != x/dev/null; then
21 slot=`$scripts/@changer_script@ @autochanger@ loaded 0 @tape_drive@ $DRIVE1`
24 $scripts/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1
34 $scripts/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1
35 $scripts/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1
39 init_drive @tape_drive@
40 $scripts/@changer_script@ @autochanger@ unload $slot @tape_drive@ $DRIVE1
46 $scripts/@changer_script@ @autochanger@ load $SLOT2 @tape_drive@ $DRIVE1
49 $scripts/@changer_script@ @autochanger@ load $SLOT1 @tape_drive@ $DRIVE1
52 echo "Something went wrong. Expected $SLOT1 or $SLOT2, got $slot"
55 init_drive @tape_drive@