From patchwork Tue Aug 9 21:45:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3330 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 F0A542406C for ; Tue, 9 Aug 2011 21:46:02 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id A54EDA18213 for ; Tue, 9 Aug 2011 21:46:02 +0000 (UTC) Received: by qwb8 with SMTP id 8so358457qwb.11 for ; Tue, 09 Aug 2011 14:46:02 -0700 (PDT) Received: by 10.229.183.84 with SMTP id cf20mr5710036qcb.121.1312926361918; Tue, 09 Aug 2011 14:46:01 -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.190.71 with SMTP id dh7cs60335qcb; Tue, 9 Aug 2011 14:46:01 -0700 (PDT) Received: from mr.google.com ([10.216.233.7]) by 10.216.233.7 with SMTP id o7mr2706517weq.7.1312926361294 (num_hops = 1); Tue, 09 Aug 2011 14:46:01 -0700 (PDT) Received: by 10.216.233.7 with SMTP id o7mr1871207weq.7.1312926360511; Tue, 09 Aug 2011 14:46:00 -0700 (PDT) Received: from mtagate2.uk.ibm.com (mtagate2.uk.ibm.com [194.196.100.162]) by mx.google.com with ESMTPS id w13si787011wec.100.2011.08.09.14.46.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Aug 2011 14:46:00 -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 p79LjxuE025654; Tue, 9 Aug 2011 21:45:59 GMT Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p79LjxiL2523362; Tue, 9 Aug 2011 22:45:59 +0100 Received: from d06av05.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p79LjxNE015122; Tue, 9 Aug 2011 15:45:59 -0600 Received: from smtp.lab.toulouse-stg.fr.ibm.com (srv01.lab.toulouse-stg.fr.ibm.com [9.101.4.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p79LjwLQ015119; Tue, 9 Aug 2011 15:45:58 -0600 Received: from localhost.localdomain (itv04751.uk.ibm.com [9.145.29.66]) by smtp.lab.toulouse-stg.fr.ibm.com (Postfix) with ESMTP id DAB2B210FB8; Tue, 9 Aug 2011 23:45:56 +0200 (CEST) From: Daniel Lezcano To: linaro-dev@lists.linaro.org Cc: paul.larson@linaro.org, amit.kucheria@linaro.org Subject: [PATCH 1/2] number the test with an id Date: Tue, 9 Aug 2011 23:45:48 +0200 Message-Id: <1312926349-25633-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.4.1 Automatically increment the test id making possible to identify the test clearly. The result will under the form: ... cpufreq_03.0/cpu0 checking governor change to 'conservative'... PASS cpufreq_03.1/cpu0 checking governor change to 'ondemand'... PASS cpufreq_03.2/cpu0 checking governor change to 'userspace'... PASS cpufreq_03.3/cpu0 checking governor change to 'powersave'... PASS cpufreq_03.4/cpu0 checking governor change to 'performance'... PASS cpufreq_03.0/cpu1 checking governor change to 'conservative'... PASS cpufreq_03.1/cpu1 checking governor change to 'ondemand'... PASS cpufreq_03.2/cpu1 checking governor change to 'userspace'... PASS cpufreq_03.3/cpu1 checking governor change to 'powersave'... PASS cpufreq_03.4/cpu1 checking governor change to 'performance'... PASS cpufreq_04.0/cpu0 checking setting frequency '2.6 GHz'... PASS cpufreq_04.1/cpu0 checking setting frequency '2.6 GHz'... PASS cpufreq_04.2/cpu0 checking setting frequency '2.0 GHz'... PASS cpufreq_04.3/cpu0 checking setting frequency '1.6 GHz'... PASS cpufreq_04.4/cpu0 checking setting frequency '1.2 GHz'... PASS cpufreq_04.5/cpu0 checking setting frequency '800.0 MHz'... PASS cpufreq_04.0/cpu1 checking setting frequency '2.6 GHz'... PASS cpufreq_04.1/cpu1 checking setting frequency '2.6 GHz'... PASS cpufreq_04.2/cpu1 checking setting frequency '2.0 GHz'... PASS cpufreq_04.3/cpu1 checking setting frequency '1.6 GHz'... PASS cpufreq_04.4/cpu1 checking setting frequency '1.2 GHz'... PASS cpufreq_04.5/cpu1 checking setting frequency '800.0 MHz'... PASS cpufreq_05.0/cpu1 checking 'ondemand' directory exists... PASS ... Signed-off-by: Daniel Lezcano Cc: Paul Larson --- include/functions.sh | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/include/functions.sh b/include/functions.sh index 3d45517..1eefa32 100644 --- a/include/functions.sh +++ b/include/functions.sh @@ -25,15 +25,13 @@ CPU_PATH="/sys/devices/system/cpu" TEST_NAME=$(basename ${0%.sh}) -BLOCK=$(basename $(pwd)) -PREFIX=$BLOCK:$TEST_NAME - -setprefix_cpu() { - PREFIX=$BLOCK:$TEST_NAME/$1 -} +PREFIX=$TEST_NAME +INC=0 +CPU= log_begin() { - printf "%-75s" "$PREFIX $@ ... " + printf "%-76s" "$TEST_NAME.$INC$CPU $@... " + INC=$(($INC+1)) } log_end() { @@ -53,7 +51,8 @@ for_each_cpu() { cpus=$(ls $CPU_PATH | grep "cpu[0-9].*") for cpu in $cpus; do - setprefix_cpu $cpu + INC=0 + CPU=/$cpu $func $cpu $@ done