diff options
| author | Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> | 2014-08-21 12:44:54 +0400 |
|---|---|---|
| committer | Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> | 2014-09-22 14:20:21 +0400 |
| commit | 1f6eab1b3bec6e7260f4800bb19b75ad4e059663 (patch) | |
| tree | 86b238ea655935b1adade81819ed0a378850ad14 /testscripts | |
| parent | 712394423d6217f931b4f9b5469f92b3985b34ed (diff) | |
| download | platform_external_ltp-1f6eab1b3bec6e7260f4800bb19b75ad4e059663.tar.gz platform_external_ltp-1f6eab1b3bec6e7260f4800bb19b75ad4e059663.tar.bz2 platform_external_ltp-1f6eab1b3bec6e7260f4800bb19b75ad4e059663.zip | |
ltpstress.sh: added cmdline to set the block device
I think it's not needed to use set_block_device(),
create_block_device() from runltp, because their logic
is in tst_acquire_device()/tst_release_device() now.
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'testscripts')
| -rwxr-xr-x | testscripts/ltpstress.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/testscripts/ltpstress.sh b/testscripts/ltpstress.sh index a0dc088af..39a5caf5b 100755 --- a/testscripts/ltpstress.sh +++ b/testscripts/ltpstress.sh @@ -58,7 +58,8 @@ usage() { cat <<-END >&2 - usage: ${0##*/} [ -d datafile ] [ -i # (in seconds) ] [ -I iofile ] [ -l logfile ] [ -m # (in Mb) ] [ -n ] [ -p ] [ -q ] [ -t duration ] [ -x TMPDIR ] [ [-S]|[-T] ] + usage: ${0##*/} [ -d datafile ] [ -i # (in seconds) ] [ -I iofile ] [ -l logfile ] [ -m # (in Mb) ] + [ -n ] [ -p ] [ -q ] [ -t duration ] [ -x TMPDIR ] [-b DEVICE] [-B LTP_DEV_FS_TYPE] [ [-S]|[-T] ] -d datafile Data file for 'sar' or 'top' to log to. Default is "/tmp/ltpstress.data". -i # (in sec) Interval that 'sar' or 'top' should take snapshots. Default is 10 seconds. @@ -72,6 +73,10 @@ usage() -T Use LTP's modified 'top' tool to measure data. -t duration Execute the testsuite for given duration in hours. Default is 24. -x TMPDIR Directory where temporary files will be created. + -b DEVICE Some tests require an unmounted block device + to run correctly. If DEVICE is not set, a loop device is + created and used automatically. + -B LTP_DEV_FS_TYPE The file system of DEVICE. example: ${0##*/} -d /tmp/sardata -l /tmp/ltplog.$$ -m 128 -t 24 -S END @@ -88,7 +93,7 @@ check_memsize() leftover_memsize=$memsize } -while getopts d:hi:I:l:STt:m:npqx:\? arg +while getopts d:hi:I:l:STt:m:npqx:b:B:\? arg do case $arg in d) datafile="$OPTARG";; @@ -138,6 +143,10 @@ do case $arg in x) export TMPBASE=$(readlink -f ${OPTARG});; + b) export LTP_DEV=${OPTARG};; + + B) export LTP_DEV_FS_TYPE=${OPTARG};; + \?) echo "Help info:" usage;; esac |
