1 #!/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 12 cd `dirname $0` 13 14 export LTPROOT=${PWD} 15 echo $LTPROOT | grep testscripts > /dev/null 2>&1 16 if [ $? -eq 0 ]; then 17 cd .. 18 export LTPROOT=${PWD} 19 fi 20 21 export TMPDIR=/tmp 22 23 mkdir /tmp/diskiopan-$$ 24 cd /tmp/diskiopan-$$ 25 26 export PATH="${PATH}:${LTPROOT}/testcases/bin" 27 28 ${LTPROOT}/ver_linux 29 30 ${LTPROOT}/bin/ltp-pan -e -l /tmp/diskiopan.log -S -a ltpdiskio -n ltpdiskio -f ${LTPROOT}/runtest/io_floppy -f ${LTPROOT}/runtest/io_cd 31 32 if [ $? -eq "0" ]; then 33 echo ltp-pan reported PASS 34 else 35 echo ltp-pan reported FAIL 36 fi 37 38