* Re: [LTP] [PATCH] runltp: make -s option can run all of the test case
[not found] <1352859913-4789-1-git-send-email-gaowanlong@cn.fujitsu.com>
@ 2012-11-21 15:01 ` chrubis
[not found] ` <50AD7ECE.208@cn.fujitsu.com>
0 siblings, 1 reply; 2+ messages in thread
From: chrubis @ 2012-11-21 15:01 UTC (permalink / raw)
To: Wanlong Gao; +Cc: LTP, Mike Frysinger
Hi!
> Currently, -s option only can run the test case in alltests by
> the PATTERN, but I think it's worth to be able to run all of
> the test cases under runtest/ by the PATTERN.
> For example, we can run test case like "cpuhotplug01" using
> ./runltp -s cpuhotplug01
> with this patch.
>
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> ---
> runltp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/runltp b/runltp
> index 04cc690..7d54f0d 100755
> --- a/runltp
> +++ b/runltp
> @@ -651,7 +651,7 @@ main()
> if [ -n "$TAG_RESTRICT_STRING" ]
> then
> mv -f ${TMP}/alltests ${TMP}/alltests.orig
> - grep $TAG_RESTRICT_STRING ${TMP}/alltests.orig > ${TMP}/alltests #Not worth checking return codes for this case
> + grep $TAG_RESTRICT_STRING ${LTPROOT}/runtest/* | awk -F':' '{print $2}' | sort -u > ${TMP}/alltests #Not worth checking return codes for this case
> fi
>
> # Blacklist or skip tests if a SKIPFILE was specified with -S
The runltp script is one of the places I'm still not familiar with, but
I'm rather woried of the 'sort -u'. This would change the order and
count of LTP cases executed and that is something that should be
discussed first.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] runltp: make -s option can run all of the test case
[not found] ` <50AD7ECE.208@cn.fujitsu.com>
@ 2012-11-22 16:28 ` chrubis
0 siblings, 0 replies; 2+ messages in thread
From: chrubis @ 2012-11-22 16:28 UTC (permalink / raw)
To: Wanlong Gao; +Cc: LTP, Mike Frysinger
Hi!
> >> Currently, -s option only can run the test case in alltests by
> >> the PATTERN, but I think it's worth to be able to run all of
> >> the test cases under runtest/ by the PATTERN.
> >> For example, we can run test case like "cpuhotplug01" using
> >> ./runltp -s cpuhotplug01
> >> with this patch.
> >>
> >> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> >> ---
> >> runltp | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/runltp b/runltp
> >> index 04cc690..7d54f0d 100755
> >> --- a/runltp
> >> +++ b/runltp
> >> @@ -651,7 +651,7 @@ main()
> >> if [ -n "$TAG_RESTRICT_STRING" ]
> >> then
> >> mv -f ${TMP}/alltests ${TMP}/alltests.orig
> >> - grep $TAG_RESTRICT_STRING ${TMP}/alltests.orig > ${TMP}/alltests #Not worth checking return codes for this case
> >> + grep $TAG_RESTRICT_STRING ${LTPROOT}/runtest/* | awk -F':' '{print $2}' | sort -u > ${TMP}/alltests #Not worth checking return codes for this case
> >> fi
> >>
> >> # Blacklist or skip tests if a SKIPFILE was specified with -S
> >
> > The runltp script is one of the places I'm still not familiar with, but
> > I'm rather woried of the 'sort -u'. This would change the order and
> > count of LTP cases executed and that is something that should be
> > discussed first.
>
> Yeah, that's the thing, do you have any good idea about removing the repeated lines here?
Thinking of it again, changing the behavior of a switch of released
script is not good idea in general.
So the best solution would be to add new switch to do what you like. But
even then, the runltp script and ltp-pan are too messy so that adding
new features to any of them may not be desirable...
Side note:
I would like to write some better test driver infrastructure but so far
I've had more important things to do...
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-22 16:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1352859913-4789-1-git-send-email-gaowanlong@cn.fujitsu.com>
2012-11-21 15:01 ` [LTP] [PATCH] runltp: make -s option can run all of the test case chrubis
[not found] ` <50AD7ECE.208@cn.fujitsu.com>
2012-11-22 16:28 ` chrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox