Signed-off-by: Xing Gu <gux.f...@cn.fujitsu.com> --- testcases/kernel/power_management/Makefile | 10 ++++----- .../kernel/power_management/cpu_consolidation.py | 2 -- testcases/kernel/power_management/ilb_test.py | 2 -- testcases/kernel/power_management/lib/Makefile | 25 ++++++++++++++++++++++ testcases/kernel/power_management/sched_domain.py | 2 -- 5 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 testcases/kernel/power_management/lib/Makefile
diff --git a/testcases/kernel/power_management/Makefile b/testcases/kernel/power_management/Makefile index 24f75f8..bc189b9 100644 --- a/testcases/kernel/power_management/Makefile +++ b/testcases/kernel/power_management/Makefile @@ -13,8 +13,8 @@ ## 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 ## +## along with this program; if not, write to the Free Software Foundation, ## +## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## ## ################################################################################ @@ -22,10 +22,8 @@ top_srcdir ?= ../../.. 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/cpu_consolidation.py b/testcases/kernel/power_management/cpu_consolidation.py index 992a745..3b68d6a 100755 --- a/testcases/kernel/power_management/cpu_consolidation.py +++ b/testcases/kernel/power_management/cpu_consolidation.py @@ -6,8 +6,6 @@ import os import sys import time -LIB_DIR = "%s/lib" % os.path.dirname(__file__) -sys.path.append(LIB_DIR) from optparse import OptionParser from sched_mc import * diff --git a/testcases/kernel/power_management/ilb_test.py b/testcases/kernel/power_management/ilb_test.py index cec0b29..ec990bc 100755 --- a/testcases/kernel/power_management/ilb_test.py +++ b/testcases/kernel/power_management/ilb_test.py @@ -5,8 +5,6 @@ import os import sys -LIB_DIR = "%s/lib" % os.path.dirname(__file__) -sys.path.append(LIB_DIR) from optparse import OptionParser from sched_mc import * diff --git a/testcases/kernel/power_management/lib/Makefile b/testcases/kernel/power_management/lib/Makefile new file mode 100644 index 0000000..3054fb3 --- /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/sched_domain.py b/testcases/kernel/power_management/sched_domain.py index 3d19ac0..1ff38b1 100755 --- a/testcases/kernel/power_management/sched_domain.py +++ b/testcases/kernel/power_management/sched_domain.py @@ -5,8 +5,6 @@ import os import sys -LIB_DIR = "%s/lib" % os.path.dirname(__file__) -sys.path.append(LIB_DIR) from sched_mc import * from optparse import OptionParser -- 1.9.3 ------------------------------------------------------------------------------ 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