public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Alexey Kodanev <alexey.kodanev@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 1/3] device-drivers/locking: add wrapper for locktorture kernel module
Date: Thu, 26 Feb 2015 11:09:28 +0100	[thread overview]
Message-ID: <20150226100927.GA13639@rei.suse.de> (raw)
In-Reply-To: <1424855586-9818-1-git-send-email-alexey.kodanev@oracle.com>

Hi!
> +TCID="lock_torture"
> +TST_TOTAL=5
> +TST_CLEANUP=cleanup
> +. test.sh
> +
> +# default options
> +test_time=60
> +
> +while getopts :ht: opt; do
> +	case "$opt" in
> +	h)
> +		echo "Usage:"
> +		echo "h        help"
> +		echo "t x      time in seconds for each test-case"
> +		exit 0
> +	;;
> +	t) test_time=$OPTARG ;;
> +	*)
> +		tst_brkm TBROK "unknown option: $opt"
> +	;;
> +	esac
> +done
> +
> +cleanup()
> +{
> +	tst_resm TINFO "cleanup"
> +	rmmod locktorture > /dev/null 2>&1
> +}
> +
> +tst_kvercmp 3 18 0 && \
> +	tst_brkm TCONF "test must be run with kernel 3.18 or newer"

We check if the module is present, do we have to check for the kernel
version too?


Otherwise it look OK.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      parent reply	other threads:[~2015-02-26 10:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25  9:13 [LTP] [PATCH 1/3] device-drivers/locking: add wrapper for locktorture kernel module Alexey Kodanev
2015-02-25  9:13 ` [LTP] [PATCH 2/3] runtest/kernel_misc: add lock_torture.sh Alexey Kodanev
2015-02-26 10:10   ` Cyril Hrubis
2015-02-25  9:13 ` [LTP] [PATCH 3/3] device-drivers/rcu/rcu_torture.sh: use default value for nreaders, fix types Alexey Kodanev
2015-02-26 10:12   ` Cyril Hrubis
     [not found]     ` <54F030D6.5020500@oracle.com>
2015-03-02 11:13       ` Cyril Hrubis
2015-02-26 10:09 ` Cyril Hrubis [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=20150226100927.GA13639@rei.suse.de \
    --to=chrubis@suse.cz \
    --cc=alexey.kodanev@oracle.com \
    --cc=ltp-list@lists.sourceforge.net \
    --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