mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # This script should be run after installing the libaio RPM or libraries |
| 3 | # A valid large file should be passed to the test. |
| 4 | # These tests will only run correctly if the kernel and libaio has been compiled |
| 5 | # with at least a 3.3.X GCC. Older versions of the compiler will seg fault. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 6 | # |
| 7 | # 02/08/04 mridge@us.ibm.com |
| 8 | # |
mreed10 | a929857 | 2006-04-19 21:46:38 +0000 | [diff] [blame] | 9 | # 04/12/06 a Forth scenerio file has been added ltp-aiodio.part4 |
| 10 | # |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 11 | |
| 12 | cd `dirname $0` |
| 13 | export LTPROOT=${PWD} |
Garrett Cooper | c362a1a | 2010-09-10 09:05:02 -0700 | [diff] [blame] | 14 | echo $LTPROOT | grep testscripts > /dev/null 2>&1 |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 15 | if [ $? -eq 0 ]; then |
| 16 | cd .. |
| 17 | export LTPROOT=${PWD} |
| 18 | fi |
Garrett Cooper | 10c2d5e | 2010-09-10 09:02:47 -0700 | [diff] [blame] | 19 | export PATH=$LTPROOT/testcases/bin:$PATH |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 20 | export TMP=${TMP:=/tmp} |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 21 | |
| 22 | run0=0 |
| 23 | runTest=0 |
| 24 | nextTest=0 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 25 | runExtendedStress=0 |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 26 | |
| 27 | export TMPBASE="/tmp" |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 28 | usage() |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 29 | { |
| 30 | cat <<-END >&2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 31 | usage: ${0##*/} [ -f large_filename -b partition] [-o optional partition] [-e 1] [-t 1] [-j 1] [-x 1] or [-a 1] |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 32 | |
| 33 | defaults: |
| 34 | file1=$file1 |
| 35 | part1=$part1 |
| 36 | ext2=0 |
| 37 | ext3=0 |
| 38 | jfs=0 |
| 39 | xfs=0 |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 40 | example: ${0##*/} -f MyLargeFile -b /dev/hdc1 [-o /dev/hdc2] [-a 1] or |
| 41 | [-e 1] [-x 1] [-j 1] [-t 1] |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 42 | -o = optional partition allows some of the tests to utilize multiple filesystems to further stress AIO/DIO |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 43 | -e = test ex2 filesystem. |
| 44 | -t = test ext3 filesystem |
| 45 | -j = test JFS filesystem |
| 46 | -x = test XFS filesystem |
| 47 | or |
| 48 | -a = test all supported filesystems, this will override any other filesystem flags passed. |
| 49 | |
| 50 | - a 1 turns on the test for the above supported filesystem, just omit passing the flag to skip that filesystem. |
| 51 | |
| 52 | - A Large file should be passed to fully stress the test. You must pass at least one filesystem to test, you can pass any combination |
| 53 | but there is not a default filesystem. ReiserFS does not support AIO so these tests will not support ReiserFS. |
| 54 | |
| 55 | - WARNING !! The partition you pass will be overwritten. This is a destructive test so only pass a partition where data can be destroyed. |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 56 | |
| 57 | |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 58 | |
| 59 | END |
| 60 | exit |
| 61 | } |
| 62 | |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 63 | while getopts :a:b:e:f:t:o:x:j: arg |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 64 | do case $arg in |
| 65 | f) file1=$OPTARG;; |
| 66 | b) part1=$OPTARG;; |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 67 | o) part2=$OPTARG;; |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 68 | e) ext2=$OPTARG;; |
| 69 | t) ext3=$OPTARG;; |
| 70 | x) xfs=$OPTARG;; |
| 71 | j) jfs=$OPTARG;; |
| 72 | a) allfs=$OPTARG;; |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 73 | |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 74 | \?) echo "************** Help Info: ********************" |
| 75 | usage;; |
| 76 | esac |
| 77 | done |
| 78 | |
| 79 | if [ ! -n "$file1" ]; then |
| 80 | echo "Missing the large file. You must pass a large filename for testing" |
| 81 | usage; |
| 82 | exit |
| 83 | fi |
| 84 | |
| 85 | if [ ! -n "$part1" ]; then |
| 86 | echo "Missing the partition. You must pass a partition for testing" |
| 87 | usage; |
| 88 | exit |
| 89 | fi |
| 90 | |
| 91 | if [ -n "$allfs" ]; then |
| 92 | echo "testing ALL supported filesystems" |
| 93 | ext2="1" |
| 94 | ext3="1" |
| 95 | jfs="1" |
| 96 | xfs="1" |
| 97 | echo "test run = $run0" |
| 98 | fi |
| 99 | |
| 100 | if [ -n "$ext2" ]; then |
| 101 | echo "** testing ext2 **" |
| 102 | run0=$(($run0+1)) |
| 103 | fi |
| 104 | |
| 105 | if [ -n "$ext3" ]; then |
| 106 | echo "** testing ext3 **" |
| 107 | run0=$(($run0+1)) |
| 108 | fi |
| 109 | |
| 110 | if [ -n "$xfs" ]; then |
| 111 | echo "** testing xfs **" |
| 112 | run0=$(($run0+1)) |
| 113 | fi |
| 114 | |
| 115 | if [ -n "$jfs" ]; then |
| 116 | echo "** testing jfs **" |
| 117 | run0=$(($run0+1)) |
| 118 | fi |
| 119 | |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 120 | if [ -n "$part2" -a "$run0" -gt 1 ]; then |
| 121 | echo "** Running extended stress testing **" |
| 122 | runExtendedStress=1 |
| 123 | elif [ -n "$part2" -a "$run0" -eq 1 ]; then |
| 124 | echo " ** You must pass at least 2 filesystems to run an extended AIO stress test **" |
| 125 | usage; |
| 126 | fi |
| 127 | |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 128 | if [ "$run0" -eq 0 ]; then |
| 129 | echo "No filesystems passed to test" |
| 130 | echo "Please pass at least one supported filesystem or the -a 1 flag to run all " |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 131 | usage; |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 132 | fi |
| 133 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 134 | mkdir $TMP > /dev/null 2>&1 |
| 135 | mkdir $TMP/aiodio > /dev/null 2>&1 |
| 136 | mkdir $TMP/aiodio2 > /dev/null 2>&1 |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 137 | |
| 138 | while [ "$runTest" -lt "$run0" ] |
| 139 | do |
| 140 | |
| 141 | echo "runTest=$runTest run0=$run0 nextTest=$nextTest" |
| 142 | |
| 143 | if [ -n "$ext2" -a $nextTest -eq 0 ]; then |
| 144 | echo "***************************" |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 145 | echo "* Testing ext2 filesystem *" |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 146 | echo "***************************" |
| 147 | mkfs -t ext2 $part1 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 148 | mount -t ext2 $part1 $TMP/aiodio |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 149 | if [ "$runExtendedStress" -eq 1 -a -n "$ext3" ]; then |
| 150 | mkfs -t ext3 $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 151 | mount -t ext3 $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 152 | elif [ "$runExtendedStress" -eq 1 -a -n "$jfs" ]; then |
| 153 | mkfs.jfs $part2 <testscripts/yesenter.txt |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 154 | mount -t jfs $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 155 | elif [ "$runExtendedStress" -eq 1 -a -n "$xfs" ]; then |
| 156 | mkfs.xfs -f $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 157 | mount -t xfs $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 158 | fi |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 159 | elif [ $nextTest -eq 0 ]; then |
| 160 | nextTest=$(($nextTest+1)) |
| 161 | fi |
| 162 | |
| 163 | if [ -n "$ext3" -a $nextTest -eq 1 ]; then |
| 164 | echo "***************************" |
| 165 | echo "* Testing ext3 filesystem *" |
| 166 | echo "***************************" |
| 167 | mkfs -t ext3 $part1 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 168 | mount -t ext3 $part1 $TMP/aiodio |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 169 | if [ "$runExtendedStress" -eq 1 -a -n "$jfs" ]; then |
| 170 | mkfs.jfs $part2 <testscripts/yesenter.txt |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 171 | mount -t jfs $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 172 | elif [ "$runExtendedStress" -eq 1 -a -n "$xfs" ]; then |
| 173 | mkfs.xfs -f $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 174 | mount -t xfs $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 175 | elif [ "$runExtendedStress" -eq 1 -a -n "$ext2" ]; then |
| 176 | mkfs -t ext2 $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 177 | mount -t ext2 $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 178 | fi |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 179 | elif [ $nextTest -eq 1 ]; then |
| 180 | nextTest=$(($nextTest+1)) |
| 181 | fi |
| 182 | |
| 183 | if [ -n "$jfs" -a $nextTest -eq 2 ]; then |
| 184 | echo "**************************" |
| 185 | echo "* Testing jfs filesystem *" |
| 186 | echo "**************************" |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 187 | mkfs.jfs $part1 <testscripts/yesenter.txt |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 188 | mount -t jfs $part1 $TMP/aiodio |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 189 | if [ "$runExtendedStress" -eq 1 -a -n "$ext3" ]; then |
| 190 | mkfs -t ext3 $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 191 | mount -t ext3 $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 192 | elif [ "$runExtendedStress" -eq 1 -a -n "$xfs" ]; then |
| 193 | mkfs.xfs -f $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 194 | mount -t xfs $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 195 | elif [ "$runExtendedStress" -eq 1 -a -n "$ext2" ]; then |
| 196 | mkfs -t ext2 $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 197 | mount -t ext2 $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 198 | fi |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 199 | elif [ $nextTest -eq 2 ]; then |
| 200 | nextTest=$(($nextTest+1)) |
| 201 | fi |
| 202 | |
| 203 | if [ -n "$xfs" -a $nextTest -eq 3 ]; then |
| 204 | echo "**************************" |
| 205 | echo "* Testing xfs filesystem *" |
| 206 | echo "**************************" |
| 207 | mkfs.xfs -f $part1 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 208 | mount -t xfs $part1 $TMP/aiodio |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 209 | if [ "$runExtendedStress" -eq 1 -a -n "$ext2" ]; then |
| 210 | mkfs -t ext2 $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 211 | mount -t ext2 $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 212 | elif [ "$runExtendedStress" -eq 1 -a -n "$ext3" ]; then |
| 213 | mkfs -t ext3 $part2 |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 214 | mount -t ext3 $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 215 | elif [ "$runExtendedStress" -eq 1 -a -n "$jfs" ]; then |
| 216 | mkfs.jfs $part2 <testscripts/yesenter.txt |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 217 | mount -t jfs $part2 $TMP/aiodio2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 218 | fi |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 219 | elif [ $nextTest -eq 3 ]; then |
| 220 | nextTest=$(($nextTest+1)) |
| 221 | fi |
| 222 | |
| 223 | nextTest=$(($nextTest+1)) |
| 224 | runTest=$(($runTest+1)) |
| 225 | |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 226 | mkdir $TMP/aiodio/junkdir |
| 227 | dd if=$file1 of=$TMP/aiodio/junkfile bs=8192 conv=block,sync |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 228 | |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 229 | date |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 230 | echo "************ Running aio-stress tests " |
mridge | 906ef67 | 2004-03-03 20:33:56 +0000 | [diff] [blame] | 231 | echo "current working dir = ${PWD}" |
yaberauneya | d8f1f5d | 2010-01-28 15:46:58 +0000 | [diff] [blame] | 232 | ${LTPROOT}/bin/rand_lines -g ${LTPROOT}/runtest/ltp-aio-stress.part1 > ${TMPBASE}/ltp-aio-stress.part1 |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 233 | |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 234 | ${LTPROOT}/bin/ltp-pan -e -S -a ltpaiostresspart1 -n ltp-aiostresspart1 -l ltpaiostress.logfile -o ltpaiostress.outfile -p -f ${TMPBASE}/ltp-aio-stress.part1 & |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 235 | |
mridge | 906ef67 | 2004-03-03 20:33:56 +0000 | [diff] [blame] | 236 | wait $! |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 237 | |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 238 | sync |
| 239 | echo "************ End Running aio-stress tests " |
mreed10 | a929857 | 2006-04-19 21:46:38 +0000 | [diff] [blame] | 240 | echo "" |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 241 | |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 242 | if [ "$runExtendedStress" -eq 1 ];then |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 243 | echo "************ Running EXTENDED aio-stress tests " |
yaberauneya | d8f1f5d | 2010-01-28 15:46:58 +0000 | [diff] [blame] | 244 | ${LTPROOT}/bin/rand_lines -g ${LTPROOT}/runtest/ltp-aio-stress.part2 > ${TMPBASE}/ltp-aio-stress.part2 |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 245 | |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 246 | ${LTPROOT}/bin/ltp-pan -e -S -a ltpaiostresspart2 -n ltp-aiostresspart2 -l ltpaiostress.logfile -o ltpaiostress.outfile -p -f ${TMPBASE}/ltp-aio-stress.part2 & |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 247 | |
| 248 | wait $! |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 249 | sync |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 250 | fi |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 251 | |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 252 | dd if=$file1 of=$TMP/aiodio/junkfile bs=8192 conv=block,sync |
| 253 | dd if=$file1 of=$TMP/aiodio/fff bs=4096 conv=block,sync |
| 254 | dd if=$file1 of=$TMP/aiodio/ff1 bs=2048 conv=block,sync |
| 255 | dd if=$file1 of=$TMP/aiodio/ff2 bs=1024 conv=block,sync |
| 256 | dd if=$file1 of=$TMP/aiodio/ff3 bs=512 conv=block,sync |
mridge | d8b3dff | 2004-04-27 22:39:40 +0000 | [diff] [blame] | 257 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 258 | echo "************ Running aiocp tests " |
yaberauneya | d8f1f5d | 2010-01-28 15:46:58 +0000 | [diff] [blame] | 259 | ${LTPROOT}/bin/rand_lines -g ${LTPROOT}/runtest/ltp-aiodio.part1 > ${TMPBASE}/ltp-aiodio.part1 |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 260 | |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 261 | ${LTPROOT}/bin/ltp-pan -e -S -a ltpaiodiopart1 -n ltp-aiodiopart1 -l ltpaiodio1.logfile -o ltpaiodio1.outfile -p -f ${TMPBASE}/ltp-aiodio.part1 & |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 262 | |
| 263 | wait $! |
| 264 | sync |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 265 | echo "************ End Running aiocp tests " |
| 266 | echo "" |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 267 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 268 | echo "************ Running aiodio_sparse tests " |
yaberauneya | d8f1f5d | 2010-01-28 15:46:58 +0000 | [diff] [blame] | 269 | ${LTPROOT}/bin/rand_lines -g ${LTPROOT}/runtest/ltp-aiodio.part2 > ${TMPBASE}/ltp-aiodio.part2 |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 270 | |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 271 | ${LTPROOT}/bin/ltp-pan -e -S -a ltpaiodiopart2 -n ltp-aiodiopart2 -l ltpaiodio2.logfile -o ltpaiodio2.outfile -p -f ${TMPBASE}/ltp-aiodio.part2 & |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 272 | |
| 273 | wait $! |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 274 | sync |
| 275 | echo "************ End Running aiodio_sparse tests " |
| 276 | echo "" |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 277 | |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 278 | |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 279 | if [ "$runExtendedStress" -eq 1 ];then |
| 280 | echo "************ Running fsx-linux tests " |
yaberauneya | d8f1f5d | 2010-01-28 15:46:58 +0000 | [diff] [blame] | 281 | ${LTPROOT}/bin/rand_lines -g ${LTPROOT}/runtest/ltp-aiodio.part3 > ${TMPBASE}/ltp-aiodio.part3 |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 282 | |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 283 | ${LTPROOT}/bin/ltp-pan -e -S -a ltpaiodiopart3 -n ltp-aiodiopart3 -l ltpaiodio3.logfile -o ltpaiodio3.outfile -p -f ${TMPBASE}/ltp-aiodio.part3 & |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 284 | |
| 285 | |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 286 | |
| 287 | wait $! |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 288 | sync |
| 289 | fi |
| 290 | |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 291 | dd if=$file1 of=$TMP/aiodio/file2 bs=2048 conv=block,sync |
| 292 | dd if=$file1 of=$TMP/aiodio/file3 bs=1024 conv=block,sync |
| 293 | dd if=$file1 of=$TMP/aiodio/file4 bs=512 conv=block,sync |
| 294 | dd if=$file1 of=$TMP/aiodio/file5 bs=4096 conv=block,sync |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 295 | |
| 296 | |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 297 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 298 | |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 299 | echo "************ Running dio_sparse & miscellaneous tests " |
yaberauneya | d8f1f5d | 2010-01-28 15:46:58 +0000 | [diff] [blame] | 300 | ${LTPROOT}/bin/rand_lines -g ${LTPROOT}/runtest/ltp-aiodio.part4 > ${TMPBASE}/ltp-aiodio.part4 |
root | 02f8fe8 | 2010-02-19 09:42:56 -0800 | [diff] [blame] | 301 | ${LTPROOT}/bin/ltp-pan -e -S -a ltpaiodiopart4 -n ltp-aiodiopart4 -l ltpaiodio4.logfile -o ltpaiodio4.outfile -p -f ${TMPBASE}/ltp-aiodio.part4 & |
mreed10 | a929857 | 2006-04-19 21:46:38 +0000 | [diff] [blame] | 302 | |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 303 | wait $! |
| 304 | sync |
| 305 | echo "************ End Running dio_sparse & miscellaneous tests " |
| 306 | echo "" |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 307 | |
Chris Dearman | 37550cf | 2012-10-17 19:54:01 -0700 | [diff] [blame] | 308 | echo "************ Cleaning/Umounting" |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 309 | |
Garrett Cooper | cc5f6b7 | 2010-09-10 09:00:00 -0700 | [diff] [blame] | 310 | rm -f $TMP/aiodio/fff |
| 311 | rm -f $TMP/aiodio/ff1 |
| 312 | rm -f $TMP/aiodio/ff2 |
| 313 | rm -f $TMP/aiodio/ff3 |
| 314 | rm -f $TMP/aiodio/junkfile* |
| 315 | rm -f $TMP/aiodio/file* |
| 316 | rm -rf $TMP/aiodio/junkdir |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 317 | |
| 318 | umount $part1 |
| 319 | |
mreed10 | 360d14b | 2006-09-11 21:05:39 +0000 | [diff] [blame] | 320 | if [ "$runExtendedStress" -eq 1 ]; then |
| 321 | umount $part2 |
| 322 | fi |
| 323 | |
| 324 | |
mridge | 79506cb | 2004-02-27 22:55:50 +0000 | [diff] [blame] | 325 | done |
mridge | bd14753 | 2004-03-03 20:33:10 +0000 | [diff] [blame] | 326 | date |
mreed10 | 67ce288 | 2006-04-10 19:48:38 +0000 | [diff] [blame] | 327 | echo "AIO/DIO test complete " |