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 7/9] power_management: install lib/pm_sched_mc.py into testcases/bin directory
Date: Mon, 2 Mar 2015 16:05:14 +0100 [thread overview]
Message-ID: <20150302150514.GD27832@rei> (raw)
In-Reply-To: <1425024732-30751-7-git-send-email-gux.fnst@cn.fujitsu.com>
Hi!
> include $(top_srcdir)/include/mk/testcases.mk
>
> -vpath %.c $(srcdir):$(top_srcdir)/lib
> -
> -INSTALL_TARGETS := lib/*.py *.py *.sh
> +INSTALL_TARGETS := *.py *.sh
>
> MAKE_DEPS += $(APICMDS_DIR)/tst_kvercmp
>
> -include $(top_srcdir)/include/mk/generic_leaf_target.mk
> +include $(top_srcdir)/include/mk/generic_trunk_target.mk
> diff --git a/testcases/kernel/power_management/lib/Makefile b/testcases/kernel/power_management/lib/Makefile
> new file mode 100644
> index 0000000..2aadac0
> --- /dev/null
> +++ b/testcases/kernel/power_management/lib/Makefile
> @@ -0,0 +1,25 @@
> +#
> +# Copyright (c) 2015 Fujitsu Ltd.
> +#
> +# 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.
> +#
> +
> +top_srcdir ?= ../../../..
> +
> +include $(top_srcdir)/include/mk/env_pre.mk
> +
> +INSTALL_TARGETS := *.py
> +
> +include $(top_srcdir)/include/mk/generic_leaf_target.mk
> diff --git a/testcases/kernel/power_management/pm_cpu_consolidation.py b/testcases/kernel/power_management/pm_cpu_consolidation.py
> index 5aa3948..72822b7 100755
> --- a/testcases/kernel/power_management/pm_cpu_consolidation.py
> +++ b/testcases/kernel/power_management/pm_cpu_consolidation.py
> @@ -7,7 +7,8 @@ import os
> import sys
> import time
> LIB_DIR = "%s/lib" % os.path.dirname(__file__)
> -sys.path.append(LIB_DIR)
> +if os.path.exists(LIB_DIR):
> + sys.path.append(LIB_DIR)
> from optparse import OptionParser
> from pm_sched_mc import *
So nothing gets installed into lib/ anymore, right?
Why not just delete the line? Or am I missing something?
--
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
next prev parent reply other threads:[~2015-03-02 15:06 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
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 [this message]
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=20150302150514.GD27832@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