blob: 71ce9eedb9c6bcfa9b569fc348274578ac96582e [file] [log] [blame]
Daniel Lezcano48839cd2011-07-21 14:23:44 +02001#
Daniel Lezcano35fb1722011-10-03 13:56:11 +02002# PM-QA validation test suite for the power management on Linux
Daniel Lezcano48839cd2011-07-21 14:23:44 +02003#
4# Copyright (C) 2011, Linaro Limited.
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; either version 2
9# of the License, or (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19#
20# Contributors:
21# Torez Smith <torez.smith@linaro.org> (IBM Corporation)
22# - initial API and implementation
23#
Torez Smith5c7211d2011-03-10 10:20:25 -060024
25###
26 # For a series of power management related test, cycle through and
27 # execute. Each test to be executed is in file testcases where the
28 # following columns make sense....
29 # column 1: name of the test case
30 # column 2: sub directory housing the test
31 # column 3: name of file for the test case
32 # column 4: from column 4 onwards, any arguments to pass on to the test
33###
34{
35 printf $1 ": "
36 cmd = "cd ./testcases/"$2 " ; sudo ./"$3 " " substr($0, length($1 $2 $3) +4)
37 system(cmd)
38 printf "\n"
39}
40