blob: 6fc5221de9bd372ee74a64c533f3f59fc3c2418c [file] [log] [blame]
robbiew59f17d12003-04-16 17:55:23 +00001#!/bin/sh
2# These tests require the corresponding media to be present:
3#
4# stress_floppy: Requires a writeable HD floppy disk
5#
6# stress_cd: Requires ANY data CD with a minimum of 100MB of data.
7#
8# NOTE: The stress_floppy test is easily modifiable for use on any
9# write device, i.e. tape drive, zip drive....etc
10#
11
12cd `dirname $0`
robbiewa61a7a32003-05-12 22:14:10 +000013
robbiew59f17d12003-04-16 17:55:23 +000014export LTPROOT=${PWD}
robbiewa61a7a32003-05-12 22:14:10 +000015echo $LTPROOT | grep testscripts > /dev/null 2>&1
16if [ $? -eq 0 ]; then
17 cd ..
18 export LTPROOT=${PWD}
19fi
robbiew59f17d12003-04-16 17:55:23 +000020
21export TMPDIR=/tmp
22
23mkdir /tmp/diskiopan-$$
24cd /tmp/diskiopan-$$
25
26export PATH="${PATH}:${LTPROOT}/testcases/bin"
27
28${LTPROOT}/ver_linux
29
subrata_modakf4f132b2008-12-31 04:39:25 +000030${LTPROOT}/pan/pan -e -l /tmp/diskiopan.log -S -a ltpdiskio -n ltpdiskio -f ${LTPROOT}/runtest/io_floppy -f ${LTPROOT}/runtest/io_cd
robbiew59f17d12003-04-16 17:55:23 +000031
32if [ $? -eq "0" ]; then
33 echo pan reported PASS
34else
35 echo pan reported FAIL
36fi
37