public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Xing Gu <gux.fnst@cn.fujitsu.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v3 3/9] power_management: split runpwtests.sh into separate testcases
Date: Mon, 2 Mar 2015 15:49:08 +0100	[thread overview]
Message-ID: <20150302144908.GA27832@rei> (raw)
In-Reply-To: <1425024732-30751-3-git-send-email-gux.fnst@cn.fujitsu.com>

Hi!
> --- /dev/null
> +++ b/testcases/kernel/power_management/runpwtests01.sh
> @@ -0,0 +1,49 @@
> +#! /bin/sh
> +#
> +# Copyright (c) International Business Machines  Corp., 2001
> +# Author: Nageswara R Sastry <nasastry@in.ibm.com>
> +#
> +# This program is free software;  you can redistribute it and#or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation; either version 2 of the License, or
> +# (at your option) any later version.
> +#
> +# This program is distributed in the hope that it will be useful, but
> +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
> +# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
> +# for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program;  if not, write to the Free Software Foundation,
> +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> +#
> +
> +export TCID="Power_Management01"
> +export TST_TOTAL=1
> +
> +. test.sh
> +. pm_include.sh
> +
> +# Checking test environment
> +check_kervel_arch
> +
> +# Checking sched_mc sysfs interface
> +multi_socket=$(is_multi_socket)
> +multi_core=$(is_multi_core)
> +if [ ! -f /sys/devices/system/cpu/sched_mc_power_savings ] ; then
> +	tst_brkm TCONF "Required kernel configuration for SCHED_MC" \
> +		"NOT set"
> +else
> +	if [ $multi_socket -ne 0 -a $multi_core -ne 0 ] ; then
> +		tst_brkm TCONF "sched_mc_power_savings interface in system" \
> +			"which is not a multi socket &(/) multi core"
> +	fi
> +fi
> +
> +if test_sched_mc.sh ; then

This script seems to be called only from this script. What is the point
of having it in a separate file?

And the same for the rest of the testcses.

-- 
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

  reply	other threads:[~2015-03-02 14:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27  8:12 [LTP] [PATCH v3 1/9] kernel/power_management: fix no_of_cpus error of change_govr.sh etc Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 2/9] lib/sched_mc.py: add testcase/bin path for searching ebizzy/kernbench Xing Gu
2015-03-02 15:00   ` Cyril Hrubis
2015-02-27  8:12 ` [LTP] [PATCH v3 3/9] power_management: split runpwtests.sh into separate testcases Xing Gu
2015-03-02 14:49   ` Cyril Hrubis [this message]
2015-02-27  8:12 ` [LTP] [PATCH v3 4/9] power_management: call the function eg. test_sched_mc instead of script test_sched_mc.sh Xing Gu
2015-03-02 14:50   ` Cyril Hrubis
2015-02-27  8:12 ` [LTP] [PATCH v3 5/9] power_management: delete unused files Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 6/9] power_management: prefix files with "pm_" Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 7/9] power_management: install lib/pm_sched_mc.py into testcases/bin directory Xing Gu
2015-03-02 15:05   ` Cyril Hrubis
2015-02-27  8:12 ` [LTP] [PATCH v3 8/9] power_management: compile testcases/kernel/power_management by default Xing Gu
2015-02-27  8:12 ` [LTP] [PATCH v3 9/9] power_management: add it into default Xing Gu
2015-03-02 15:09 ` [LTP] [PATCH v3 1/9] kernel/power_management: fix no_of_cpus error of change_govr.sh etc Cyril Hrubis

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=20150302144908.GA27832@rei \
    --to=chrubis@suse.cz \
    --cc=gux.fnst@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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