• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
12cd `dirname $0`
13
14export LTPROOT=${PWD}
15echo $LTPROOT | grep testscripts > /dev/null 2>&1
16if [ $? -eq 0 ]; then
17 cd ..
18 export LTPROOT=${PWD}
19fi
20
21export TMPDIR=/tmp
22
23mkdir /tmp/diskiopan-$$
24cd /tmp/diskiopan-$$
25
26export 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
32if [ $? -eq "0" ]; then
33  echo ltp-pan reported PASS
34else
35  echo ltp-pan reported FAIL
36fi
37
38