From: chrubis@suse.cz
To: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 1/2] ltpstress.sh: added cmdline option to set temporary directory
Date: Thu, 27 Mar 2014 14:38:09 +0100 [thread overview]
Message-ID: <20140327133809.GA4234@rei> (raw)
In-Reply-To: <1394543097-21115-1-git-send-email-stanislav.kholmanskikh@oracle.com>
Hi!
> -export TMPBASE="/tmp"
You have removed the default value for TMPBASE so the default dir is now
/ltpstress-$$ and not /tmp/ltpstress-$$.
> -export TMP="${TMPBASE}/ltpstress-$$"
> export PATH=$LTPROOT/testcases/bin:$PATH
> memsize=0
> hours=24
> @@ -57,7 +55,7 @@ usage()
> {
>
> cat <<-END >&2
> - usage: ${0##*/} [ -d datafile ] [ -i # (in seconds) ] [ -I iofile ] [ -l logfile ] [ -m # (in Mb) ] [ -n ] [ -t duration ] [ [-S]|[-T] ]
> + usage: ${0##*/} [ -d datafile ] [ -i # (in seconds) ] [ -I iofile ] [ -l logfile ] [ -m # (in Mb) ] [ -n ] [ -t duration ] [ -x TMPDIR ] [ [-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.
> @@ -68,6 +66,7 @@ usage()
> -S Use 'sar' to measure data.
> -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.
It's shame that -d is allready taken and we are not compatible with
runltp... but I guess we cannot do anything about it.
>
> -
> -mkdir -p ${TMP}
> -
> -cd ${TMP}
> -if [ $? -ne 0 ]; then
> - echo "could not cd ${TMP} ... exiting"
> - exit
> -fi
> -
> -while getopts d:hi:I:l:STt:m:n\? arg
> +while getopts d:hi:I:l:STt:m:nx:\? arg
> do case $arg in
>
> d) datafile="$OPTARG";;
> @@ -137,11 +127,30 @@ do case $arg in
> t) hours=$OPTARG
> duration=$(($hours * 60 * 60));;
>
> + x) export TMPBASE=$(readlink -f ${OPTARG});;
Why readlink?
The rest is fine.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2014-03-27 13:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 13:04 [LTP] [PATCH 1/2] ltpstress.sh: added cmdline option to set temporary directory Stanislav Kholmanskikh
2014-03-11 13:04 ` [LTP] [PATCH 2/2] ltpstress.sh: explicit passing of -p and -q ltp-pan parameters Stanislav Kholmanskikh
2014-03-27 13:39 ` chrubis
2014-03-27 13:38 ` chrubis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140327133809.GA4234@rei \
--to=chrubis@suse.cz \
--cc=ltp-list@lists.sourceforge.net \
--cc=stanislav.kholmanskikh@oracle.com \
--cc=vasily.isaenko@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox