From patchwork Tue Jul 26 12:46:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3140 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 060CE23F3F for ; Tue, 26 Jul 2011 12:47:08 +0000 (UTC) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.216.173]) by fiordland.canonical.com (Postfix) with ESMTP id CAC5CA1828C for ; Tue, 26 Jul 2011 12:47:07 +0000 (UTC) Received: by mail-qy0-f173.google.com with SMTP id 10so1729763qyk.11 for ; Tue, 26 Jul 2011 05:47:07 -0700 (PDT) Received: by 10.229.1.217 with SMTP id 25mr1981682qcg.38.1311684427576; Tue, 26 Jul 2011 05:47:07 -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.229.217.78 with SMTP id hl14cs110982qcb; Tue, 26 Jul 2011 05:47:07 -0700 (PDT) Received: by 10.227.183.196 with SMTP id ch4mr3145648wbb.10.1311684423161; Tue, 26 Jul 2011 05:47:03 -0700 (PDT) Received: from mtagate2.uk.ibm.com (mtagate2.uk.ibm.com [194.196.100.162]) by mx.google.com with ESMTPS id s17si818450wec.145.2011.07.26.05.47.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jul 2011 05:47:02 -0700 (PDT) Received-SPF: neutral (google.com: 194.196.100.162 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=194.196.100.162; Authentication-Results: mx.google.com; spf=neutral (google.com: 194.196.100.162 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p6QCl1Eq010685; Tue, 26 Jul 2011 12:47:01 GMT Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6QCl0IQ2494634; Tue, 26 Jul 2011 13:47:00 +0100 Received: from d06av07.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6QCl09Q012606; Tue, 26 Jul 2011 06:47:00 -0600 Received: from smtp.lab.toulouse-stg.fr.ibm.com (srv01.lab.toulouse-stg.fr.ibm.com [9.101.4.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p6QCl0FU012590; Tue, 26 Jul 2011 06:47:00 -0600 Received: from mai.lab.toulouse-stg.fr.ibm.com (dhcp7.lab.toulouse-stg.fr.ibm.com [9.101.4.207]) by smtp.lab.toulouse-stg.fr.ibm.com (Postfix) with ESMTP id 346A3210FBA; Tue, 26 Jul 2011 14:47:00 +0200 (CEST) From: Daniel Lezcano To: linaro-dev@lists.linaro.org Cc: amit.kucheria@linaro.org Subject: [pm-qa 01/14] put in place the new framework Date: Tue, 26 Jul 2011 14:46:51 +0200 Message-Id: <1311684424-8057-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1311684424-8057-1-git-send-email-daniel.lezcano@linaro.org> References: <1311684424-8057-1-git-send-email-daniel.lezcano@linaro.org> In order to run the tests, invoke: 'make check' Signed-off-by: Daniel Lezcano --- Makefile | 10 ++++++++++ cpufreq/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ utils/Makefile | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 cpufreq/Makefile create mode 100644 utils/Makefile diff --git a/Makefile b/Makefile index a667f35..be9df5d 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,18 @@ # all: + @(cd utils; $(MAKE)) @(cd testcases; $(MAKE) all) +check: + @(cd utils; $(MAKE) check) + @(cd cpufreq; $(MAKE) check) +uncheck: + @(cd cpufreq; $(MAKE) uncheck) + +recheck: uncheck check + clean: + @(cd utils; $(MAKE) clean) @(cd testcases; $(MAKE) clean) diff --git a/cpufreq/Makefile b/cpufreq/Makefile new file mode 100644 index 0000000..5dfc00d --- /dev/null +++ b/cpufreq/Makefile @@ -0,0 +1,38 @@ +# +# 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: $(LOG) + +%.log: %.sh + @./$< + +clean: + rm -f $(LOG) + +uncheck: clean + +recheck: uncheck check diff --git a/utils/Makefile b/utils/Makefile new file mode 100644 index 0000000..6b0db07 --- /dev/null +++ b/utils/Makefile @@ -0,0 +1,35 @@ +# +# 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 +# + +CFLAGS?=-g -Wall +CC?=gcc +SRC=$(wildcard *.c) +EXEC=$(SRC:%.c=%) + +check: $(EXEC) + +all: $(EXEC) + +clean: + rm -f *.o $(EXEC)