robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame^] | 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 | export LTPROOT=${PWD} |
| 14 | |
| 15 | export TMPDIR=/tmp |
| 16 | |
| 17 | mkdir /tmp/diskiopan-$$ |
| 18 | cd /tmp/diskiopan-$$ |
| 19 | |
| 20 | export PATH="${PATH}:${LTPROOT}/testcases/bin" |
| 21 | |
| 22 | ${LTPROOT}/ver_linux |
| 23 | |
| 24 | ${LTPROOT}/pan/pan -e -l /tmp/diskiopan.log -S -a ltpdiskio -n ltpdiskio -f ${LTPROOT}/runtest/io |
| 25 | |
| 26 | if [ $? -eq "0" ]; then |
| 27 | echo pan reported PASS |
| 28 | else |
| 29 | echo pan reported FAIL |
| 30 | fi |
| 31 | |