From patchwork Thu Sep 22 13:47:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 4271 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 91B2623EFA for ; Thu, 22 Sep 2011 13:48:39 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 858A9A18013 for ; Thu, 22 Sep 2011 13:48:39 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 23so3867459fxe.11 for ; Thu, 22 Sep 2011 06:48:39 -0700 (PDT) Received: by 10.223.94.134 with SMTP id z6mr3110625fam.8.1316699319439; Thu, 22 Sep 2011 06:48:39 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.18.198 with SMTP id y6cs169077lad; Thu, 22 Sep 2011 06:48:39 -0700 (PDT) Received: by 10.227.200.14 with SMTP id eu14mr2153913wbb.78.1316699318866; Thu, 22 Sep 2011 06:48:38 -0700 (PDT) Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr. [80.12.242.126]) by mx.google.com with ESMTP id gb5si7128599wbb.60.2011.09.22.06.48.38; Thu, 22 Sep 2011 06:48:38 -0700 (PDT) Received-SPF: neutral (google.com: 80.12.242.126 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.126; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.126 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([92.134.192.27]) by mwinf5d60 with ME id bpom1h0010bvZvg03pomLQ; Thu, 22 Sep 2011 15:48:47 +0200 X-ME-engine: default From: Daniel Lezcano To: linaro-dev@lists.linaro.org Subject: [pm-qa 2/2] Factor out Makefiles Date: Thu, 22 Sep 2011 15:47:47 +0200 Message-Id: <1316699267-11536-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1316699267-11536-1-git-send-email-daniel.lezcano@linaro.org> References: <1316699267-11536-1-git-send-email-daniel.lezcano@linaro.org> The Makefile for cpufreq and sched_mc are exactly the same, let's factor out them in a single Makefile. Signed-off-by: Daniel Lezcano --- Test.mk | 43 +++++++++++++++++++++++++++++++++++++++++++ cpufreq/Makefile | 20 +------------------- sched_mc/Makefile | 20 +------------------- 3 files changed, 45 insertions(+), 38 deletions(-) create mode 100644 Test.mk \ No newline at end of file diff --git a/Test.mk b/Test.mk new file mode 100644 index 0000000..3c387db --- /dev/null +++ b/Test.mk @@ -0,0 +1,43 @@ +# +# PM-QA validation test suite for the power management on ARM +# +# Copyright (C) 2011, Linaro Limited. +# +# 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. +# +# Contributors: +# Daniel Lezcano (IBM Corporation) +# - initial API and implementation +# + +TST=$(wildcard *.sh) +LOG=$(TST:.sh=.log) + +check: uncheck $(LOG) + +%.log: %.sh + @echo "###" + @echo "### $(<:.sh=):" + @echo -n "### "; cat $(<:.sh=.txt); + @echo -n "### "; grep "URL :" ./$< | awk '/http/{print $$NF}' + @echo "###" + @./$< 2> $@ + +clean: + rm -f $(LOG) + +uncheck: clean + +recheck: uncheck check diff --git a/cpufreq/Makefile b/cpufreq/Makefile index 3c387db..762441f 100644 --- a/cpufreq/Makefile +++ b/cpufreq/Makefile @@ -22,22 +22,4 @@ # - initial API and implementation # -TST=$(wildcard *.sh) -LOG=$(TST:.sh=.log) - -check: uncheck $(LOG) - -%.log: %.sh - @echo "###" - @echo "### $(<:.sh=):" - @echo -n "### "; cat $(<:.sh=.txt); - @echo -n "### "; grep "URL :" ./$< | awk '/http/{print $$NF}' - @echo "###" - @./$< 2> $@ - -clean: - rm -f $(LOG) - -uncheck: clean - -recheck: uncheck check +include ../Test.mk \ No newline at end of file diff --git a/sched_mc/Makefile b/sched_mc/Makefile index 3c387db..762441f 100644 --- a/sched_mc/Makefile +++ b/sched_mc/Makefile @@ -22,22 +22,4 @@ # - initial API and implementation # -TST=$(wildcard *.sh) -LOG=$(TST:.sh=.log) - -check: uncheck $(LOG) - -%.log: %.sh - @echo "###" - @echo "### $(<:.sh=):" - @echo -n "### "; cat $(<:.sh=.txt); - @echo -n "### "; grep "URL :" ./$< | awk '/http/{print $$NF}' - @echo "###" - @./$< 2> $@ - -clean: - rm -f $(LOG) - -uncheck: clean - -recheck: uncheck check +include ../Test.mk