blob: 5d25030801a09a0d41f24f19a95d2955b6933f62 [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#
Chris Dearman37550cf2012-10-17 19:54:01 -070011
robbiew59f17d12003-04-16 17:55:23 +000012cd `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"
Chris Dearman37550cf2012-10-17 19:54:01 -070027
robbiew59f17d12003-04-16 17:55:23 +000028${LTPROOT}/ver_linux
29
root02f8fe82010-02-19 09:42:56 -080030${LTPROOT}/bin/ltp-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
subrata_modak14390fd2009-05-19 09:39:11 +000033 echo ltp-pan reported PASS
robbiew59f17d12003-04-16 17:55:23 +000034else
subrata_modak14390fd2009-05-19 09:39:11 +000035 echo ltp-pan reported FAIL
robbiew59f17d12003-04-16 17:55:23 +000036fi
37