Daniel Lezcano | 48839cd | 2011-07-21 14:23:44 +0200 | [diff] [blame] | 1 | # |
Daniel Lezcano | 35fb172 | 2011-10-03 13:56:11 +0200 | [diff] [blame^] | 2 | # PM-QA validation test suite for the power management on Linux |
Daniel Lezcano | 48839cd | 2011-07-21 14:23:44 +0200 | [diff] [blame] | 3 | # |
| 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 Smith | 5c7211d | 2011-03-10 10:20:25 -0600 | [diff] [blame] | 24 | |
| 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 | |