aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-07-26 14:38:59 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2011-07-26 14:38:59 +0200
commitce9ccca296b3242c99fd795be4eee127affab1ba (patch)
tree82793e8d0b569d3a2ad061686ac18eacfe9d330c
parent48839cd20493d43b9f93f5fc2ab5690ff02d1adf (diff)
put in place the new framework
In order to run the tests, invoke: 'make check' Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--Makefile10
-rw-r--r--cpufreq/Makefile38
-rw-r--r--utils/Makefile35
3 files changed, 83 insertions, 0 deletions
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 <daniel.lezcano@linaro.org> (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 <daniel.lezcano@linaro.org> (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)