In order to run the tests, invoke:
'make check'
Signed-off-by: Daniel Lezcano daniel.lezcano@linaro.org --- 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 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)