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 | # |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 11 | |
robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame] | 12 | cd `dirname $0` |
robbiew | a61a7a3 | 2003-05-12 22:14:10 +0000 | [diff] [blame] | 13 | |
robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame] | 14 | export LTPROOT=${PWD} |
robbiew | a61a7a3 | 2003-05-12 22:14:10 +0000 | [diff] [blame] | 15 | echo $LTPROOT | grep testscripts > /dev/null 2>&1 |
| 16 | if [ $? -eq 0 ]; then |
| 17 | cd .. |
| 18 | export LTPROOT=${PWD} |
| 19 | fi |
robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame] | 20 | |
| 21 | export TMPDIR=/tmp |
| 22 | |
| 23 | mkdir /tmp/diskiopan-$$ |
| 24 | cd /tmp/diskiopan-$$ |
| 25 | |
| 26 | export PATH="${PATH}:${LTPROOT}/testcases/bin" |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 27 | |
robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame] | 28 | ${LTPROOT}/ver_linux |
| 29 | |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 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 |
robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame] | 31 | |
| 32 | if [ $? -eq "0" ]; then |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 33 | echo ltp-pan reported PASS |
robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame] | 34 | else |
subrata_modak | 14390fd | 2009-05-19 09:39:11 +0000 | [diff] [blame] | 35 | echo ltp-pan reported FAIL |
robbiew | 59f17d1 | 2003-04-16 17:55:23 +0000 | [diff] [blame] | 36 | fi |
| 37 | |