Re: [PATCH 0/6] Improve pm-qa's build system series

2019-01-13 Thread Lisa Nguyen
Hi Luis, On Fri, Jan 11, 2019 at 9:53 AM Luis Machado wrote: > > Hi, > > For the sake of keeping things organized and easier to review, i've broken > up the previous change into smaller pieces. > > Luis Machado (6): > Make the default target only build the utils > Remove utils/utils_sanity.sh

Re: [PM-QA PATCH 2/2] functions: switch to userspace governor in restore_frequencies()

2018-05-17 Thread Lisa Nguyen
On Wed, May 16, 2018 at 11:41 PM, Thierry Escande wrote: > Hi Lisa, > > > On 17/05/2018 02:10, Lisa Nguyen wrote: >> >> Hi Thierry, >> >> On Wed, May 16, 2018 at 6:28 AM, Thierry Escande >> wrote: >>> >>> The governor needs to be set t

Re: [PM-QA PATCH 2/2] functions: switch to userspace governor in restore_frequencies()

2018-05-16 Thread Lisa Nguyen
Hi Thierry, On Wed, May 16, 2018 at 6:28 AM, Thierry Escande wrote: > The governor needs to be set to 'userspace' before setting the original > frequency back. > > This fixes cpufreq_06.sh that otherwise logs 'sh: echo: I/O error' > messages in its log file. > > Signed-off-by: Thierry Escande >

Re: [PATCH PM-QA] functions: correct get_os logic

2017-10-18 Thread Lisa Nguyen
On 16 October 2017 at 20:03, Li Zhijian wrote: > at commit aea49c3: functions: Fix logic for get_os() function > To determine which OS the scripts are running on, check if the > build.prop file exists instead of using the lsb_release command. > If it does, then the scripts are running on Androi

Re: [PATCH PM-QA v2] thermal/thermal_06.sh: add missing get_os before check the return value

2017-10-18 Thread Lisa Nguyen
On 16 October 2017 at 20:02, Li Zhijian wrote: > 'ps' have different output between Android and ubuntu, and test suite > use get_os to determine which OS the scripts are running on. > > at commit 84479a38, thermal: Get correct PID for heat_cpu based on OS > this patch want to get PID based on OS,

Re: [PATCH PM-QA] thermal/thermal_06.sh: add missing get_os before check the return value

2017-10-16 Thread Lisa Nguyen
Hi Li, On 13 October 2017 at 02:51, Li Zhijian wrote: > Signed-off-by: Li Zhijian Can you add a brief commit message to why this change is necessary and send an updated patch please? Thanks, Lisa > --- > thermal/thermal_06.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/thermal/t

Re: [PM-QA] question about thermal

2017-09-07 Thread Lisa Nguyen
On 5 September 2017 at 03:01, Xiang Dai wrote: > Hi! > > I test with below two cpu to test: > - Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz > > With below action: > make -C cpuidle cpuidle_killer > make -C thermal run_tests > > It shows several thermal zone and cooling device on my machine. > But th

Re: [PM-QA] question about cputopology_04

2017-08-30 Thread Lisa Nguyen
Hi, On 29 August 2017 at 19:23, Dai Xiang wrote: > Hi! > > I test with below two cpu to test: > - Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz > - Intel(R) Atom(TM) CPU S1240 @ 1.60GHz > > With below action: > make -C cpuidle cpuidle_killer > make -C cputopology run_tests > > Both cpu fail with cput

Re: [PATCH PM-QA] Fixed array initializations to calculate freq deviation.

2016-05-16 Thread Lisa Nguyen
On 16 May 2016 at 14:21, Lisa Nguyen wrote: > On 12 May 2016 at 03:02, Saul Romero wrote: >> Hello Daniel: >> Where do you want me to elaborate more about this fix? Is it in the comments >> section so amend the patch? >> Thanks! > > Hi Saul, > > You&

Re: [PATCH PM-QA] Fixed array initializations to calculate freq deviation.

2016-05-16 Thread Lisa Nguyen
On 12 May 2016 at 03:02, Saul Romero wrote: > Hello Daniel: > Where do you want me to elaborate more about this fix? Is it in the comments > section so amend the patch? > Thanks! Hi Saul, You'd elaborate more about your fix in your commit message. So far your commit message is, "Changes in cpuf

Re: [PATCH PM-QA] Fixed array initializations to calculate freq deviation.

2016-05-04 Thread Lisa Nguyen
Hi Saul, On 4 May 2016 at 03:54, Saul Romero wrote: > --- You're missing a commit message and a Signed-off-by line. Can you resend the patch with those two items included please? Assuming this is the latest commit you made, you can use the 'git commit --amend -s' command to make the updates. >

Re: [PATCH 1/6] Change options to flag approach.

2016-02-22 Thread Lisa Nguyen
Hi Daniel, On 22 February 2016 at 07:19, David Brown wrote: > On Fri, Feb 19, 2016 at 02:32:40PM +, Daniel Lezcano wrote: > >> From: Daniel Lezcano > > > Did you mean to have these patches authored by your @free.fr address, > but sent from Linaro? > >> Subject: Re: [PATCH 1/6] Change options

Re: [PATCH PM-QA v4] cputopology: add arm capacity calculation test

2015-04-22 Thread Lisa Nguyen
Merged. https://git.linaro.org/power/pm-qa.git/commit/e66966ef6a08cd3b491ee1df5c6c5d33baaf1f1c Will add a entry for this in the PM-QA wiki. Thanks, Lisa On 22 April 2015 at 04:10, Vincent Guittot wrote: > On 21 April 2015 at 21:25, Larry Bassel wrote: >> Add test which verifies capacity calcu

[PATCH PM-QA v2] Update the README file

2015-04-20 Thread Lisa Nguyen
Update the README file with bugs, questions, and contribution sections and fix the format for readability. Signed-off-by: Lisa Nguyen --- Changes in v2: * Removed references to LAVA * Rewritten Additional Notes section of README * Replace the phrase "Linux devices" with hardware

Re: [PATCH PM-QA] Update the README file

2015-04-15 Thread Lisa Nguyen
On 15 April 2015 at 02:06, Amit Kucheria wrote: > On Wed, Apr 15, 2015 at 3:32 AM, Lisa Nguyen wrote: >> Update the README file with bugs, questions, and contribution >> sections and fix the format for readability. >> >> Signed-off-by: Lisa Nguye

[PATCH PM-QA] Update the README file

2015-04-14 Thread Lisa Nguyen
Update the README file with bugs, questions, and contribution sections and fix the format for readability. Signed-off-by: Lisa Nguyen --- README | 46 +++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/README b/README index 2eef1c4

Re: [PATCH PM-QA v3] cputopology: add arm capacity calculation test

2015-04-06 Thread Lisa Nguyen
On 5 April 2015 at 22:43, Amit Kucheria wrote: > On Fri, Apr 3, 2015 at 1:09 AM, Larry Bassel wrote: >> Add test which verifies capacity calculation on arm >> architecture platforms. >> >> Since there isn't yet a similar calculation done >> for arm64 platforms, this architecture isn't supported >

Re: [PATCH PM-QA v2] cputopology: add scheduler domain flag test

2015-04-01 Thread Lisa Nguyen
Applied with Vincent's ack: http://git.linaro.org/power/pm-qa.git/commit/04211670ed04645fe44e1244aa799658423bac47 Thanks! :) On 1 April 2015 at 00:23, Vincent Guittot wrote: > On 3 March 2015 at 22:02, Larry Bassel wrote: >> Add test which checks and prints scheduler domain flags. >> >> Signed

Re: [PATCH PM-QA v2] cputopology: add arm capacity calculation test

2015-04-01 Thread Lisa Nguyen
Gentle ping and friendly reminder that I need someone to ack Larry's cpu capacity script before I can merge it :) On 24 March 2015 at 08:12, Larry Bassel wrote: > On 24 Mar 15 12:10, Amit Kucheria wrote: >> Larry, >> >> Could you also please attach the output of the script on your test platform?

Re: [PATCH PM-QA v2] cputopology: add scheduler domain flag test

2015-03-10 Thread Lisa Nguyen
On 3 March 2015 at 13:02, Larry Bassel wrote: > > Add test which checks and prints scheduler domain flags. > > Signed-off-by: Larry Bassel > --- > cputopology/cputopology_03.sh | 109 > + > cputopology/cputopology_03.txt | 1 + > 2 files changed, 110 i

Re: [PATCH PM-QA] cputopology: add scheduler domain flag test

2015-02-25 Thread Lisa Nguyen
On 25 February 2015 at 05:52, Vincent Guittot wrote: > On 24 February 2015 at 21:53, Vincent Guittot > wrote: >> On 24 February 2015 at 01:58, Lisa Nguyen wrote: >>> [Adding Mike Turquette as another possible reviewer] >>> >>> On 7 February 2015 at 16

Re: [PATCH PM-QA] cputopology: add scheduler domain flag test

2015-02-23 Thread Lisa Nguyen
[Adding Mike Turquette as another possible reviewer] On 7 February 2015 at 16:08, Larry Bassel wrote: > Add test which checks and prints scheduler domain flags. > > Signed-off-by: Larry Bassel > --- > cputopology/cputopology_03.sh | 74 > ++ > cputopolo

[PATCH PM-QA 0/2] Minor Improvement patches

2015-02-18 Thread Lisa Nguyen
Couple patches to ensure that PM-QA scripts will run in order and remove unnecessary checks in cpuidle_08 and cpuidle_09 scripts. Lisa Nguyen (2): Test: Add sort function cpufreq: Remove unnecessary checks Test.mk |2 +- cpufreq/cpufreq_08.sh |3 --- cpufreq

[PATCH PM-QA 2/2] cpufreq: Remove unnecessary checks

2015-02-18 Thread Lisa Nguyen
The check function already determines if a subtest fails, passes, or skips. No need to check for the return value of the command. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_08.sh |3 --- cpufreq/cpufreq_09.sh |6 -- 2 files changed, 9 deletions(-) diff --git a/cpufreq

[PATCH PM-QA 1/2] Test: Add sort function

2015-02-18 Thread Lisa Nguyen
Use the built-in sort function to ensure that the PM-QA scripts will run in order. Some platforms may run makefile versions greater than 3.82. See the following link for details: https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html Signed-off-by: Lisa Nguyen --- Test.mk |2

[PATCH PM-QA 4/4] Android: Update makefiles with new test numbers

2015-02-02 Thread Lisa Nguyen
Update the Android makefiles to include new test numbers to run cputopology_sanity.sh, cpuhotplug_00.sh (formerly 1_sanity_check.sh), and cpuhotplug_99.sh (formerly z_sanity_check.sh). Signed-off-by: Lisa Nguyen --- cpuhotplug/Android.mk |4 +--- cputopology/Android.mk |2 +- 2 files

[PATCH PM-QA 3/4] cputopology: Add cputopology_sanity.sh

2015-02-02 Thread Lisa Nguyen
Every test module has a sanity script. Add one for cputopology to check for topology entries for all cpus. Signed-off-by: Lisa Nguyen --- cputopology/cputopology_sanity.sh | 49 cputopology/cputopology_sanity.txt |1 + 2 files changed, 50 insertions

[PATCH PM-QA 2/4] cpuhotplug: Rename z_sanity_check files to cpuhotplug_99 files

2015-02-02 Thread Lisa Nguyen
z_sanity_check.sh doesn't have a meaningful name. Rename it to cpuhotplug_99 as the last script to run to see if all cpus are back online after running previous cpuhotplug scripts. Signed-off-by: Lisa Nguyen --- cpuhotplug/cpuhotplug_99.sh |

[PATCH PM-QA 1/4] cpuhotplug: Rename 1_sanity_check files to cpuhotplug_00 files

2015-02-02 Thread Lisa Nguyen
1_sanity_check.sh script didn't have a meaningful name. Rename it to cpuhotplug_00 as the first script to check if all cpus are online before the other cpuhotplug scripts begin. Signed-off-by: Lisa Nguyen --- cpuhotplug/1_sanity_check.sh |

[PATCH PM-QA 0/4] Minor sanity scripts adjustments

2015-02-02 Thread Lisa Nguyen
look good, then update the Android makefiles to include the new test names. The PM-QA wiki[2] will be updated as well. [1] http://lists.linaro.org/pipermail/linaro-dev/2015-February/017797.html [2] https://wiki.linaro.org/WorkingGroups/PowerManagement/ Resources/TestSuite/PmQaSpecification Lisa

Re: [PATCH PM-QA v2 13/25] Rewrite logic to check for sampling_rate

2015-02-02 Thread Lisa Nguyen
On 1 February 2015 at 22:00, Amit Kucheria wrote: > On Mon, Feb 2, 2015 at 7:34 AM, Lisa Nguyen wrote: >> Set the sampling_rate to zero if the sampling_rate attribute cannot >> be found in either directories listed in the if condition. This will >> also resolve minor bugs wh

Re: [PATCH PM-QA v2 24/25] cpufreq: Rewrite logic to check if powersave is supported

2015-02-02 Thread Lisa Nguyen
On 1 February 2015 at 22:03, Amit Kucheria wrote: > On Mon, Feb 2, 2015 at 7:34 AM, Lisa Nguyen wrote: >> With this new change, the final result for the cpufreq_09 >> script will always show up and be counted in LAVA. > > Why? I'll look into this in detail. It

Re: [PATCH PM-QA v2 23/25] cpufreq: Check to see if scaling_available_governors is available

2015-02-02 Thread Lisa Nguyen
On 1 February 2015 at 22:02, Amit Kucheria wrote: > On Mon, Feb 2, 2015 at 7:34 AM, Lisa Nguyen wrote: >> Before searching for specific governors, check to see if the >> scaling_available_governors attribute exists first. It is to add >> more error handling. > >

Re: [PATCH PM-QA v2 09/25] Fix the syntax to call C programs

2015-02-02 Thread Lisa Nguyen
On 1 February 2015 at 21:44, Amit Kucheria wrote: > On Mon, Feb 2, 2015 at 7:34 AM, Lisa Nguyen wrote: >> In PM-QA, there are programs written in C (e.g. cpuidle_killer, >> uevent_reader) that run in the background while some scripts are >> being. >> >> However,

Re: [PATCH PM-QA v2 00/25] Removing bashisms and other cleanups

2015-02-02 Thread Lisa Nguyen
On 1 February 2015 at 22:16, Amit Kucheria wrote: > On Mon, Feb 2, 2015 at 11:40 AM, Amit Kucheria > wrote: >> Hi Lisa, >> >> On Mon, Feb 2, 2015 at 7:34 AM, Lisa Nguyen wrote: >>> Changes in v2: >>> - Reorganized previous patchset and rec

[PATCH PM-QA v2 21/25] cpufreq: Remove unnecessary checks

2015-02-01 Thread Lisa Nguyen
The check function already determines if a subtest fails, passes, or skips. No need to check for the return value of the command. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_08.sh |3 --- cpufreq/cpufreq_09.sh |6 -- 2 files changed, 9 deletions(-) diff --git a/cpufreq

[PATCH PM-QA v2 22/25] Test: Add sort function

2015-02-01 Thread Lisa Nguyen
Use the built-in sort function to ensure that the PM-QA scripts will run in order. Some platforms may have makefile versions greater than 3.82. See the following link for details: https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html Signed-off-by: Lisa Nguyen --- Test.mk |2

[PATCH PM-QA v2 24/25] cpufreq: Rewrite logic to check if powersave is supported

2015-02-01 Thread Lisa Nguyen
With this new change, the final result for the cpufreq_09 script will always show up and be counted in LAVA. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_09.sh |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpufreq/cpufreq_09.sh b/cpufreq/cpufreq_09.sh index

[PATCH PM-QA v2 23/25] cpufreq: Check to see if scaling_available_governors is available

2015-02-01 Thread Lisa Nguyen
Before searching for specific governors, check to see if the scaling_available_governors attribute exists first. It is to add more error handling. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_05.sh | 83 +++-- 1 file changed, 45 insertions(+), 38

[PATCH PM-QA v2 20/25] Improve test conditions to see if a directory or file exists

2015-02-01 Thread Lisa Nguyen
Additional checks to see if a directory or file exists. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_sanity.sh |3 +-- cpuhotplug/cpuhotplug_07.sh |5 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cpufreq/cpufreq_sanity.sh b/cpufreq/cpufreq_sanity.sh index

[PATCH PM-QA v2 25/25] Whitespace cleanup

2015-02-01 Thread Lisa Nguyen
Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_03.sh |3 -- cpufreq/cpufreq_04.sh |2 +- cpufreq/cpufreq_05.sh |6 ++- cpufreq/cpufreq_06.sh | 10 +--- cpufreq/cpufreq_07.sh | 32 ++-- cpufreq/cpufreq_08.sh

[PATCH PM-QA v2 19/25] Use -q option for grep command

2015-02-01 Thread Lisa Nguyen
Silence the grep results by using the -q option. The extra output that some grep commands print out would be more useful in debugging situations. Signed-off-by: Lisa Nguyen --- cpuhotplug/cpuhotplug_06.sh |2 +- cpuhotplug/cpuhotplug_07.sh |4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH PM-QA v2 14/25] suspend_functions: Check if $LOGDIR exists

2015-02-01 Thread Lisa Nguyen
Add an if condition to check if the log directory exists. Create one if it doesn't already exist. Signed-off-by: Lisa Nguyen --- include/suspend_functions.sh |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/suspend_functions.sh b/include/suspend_functio

[PATCH PM-QA v2 18/25] Android: Update makefiles with new test numbers

2015-02-01 Thread Lisa Nguyen
Signed-off-by: Lisa Nguyen --- cpuhotplug/Android.mk |4 +--- cputopology/Android.mk |2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cpuhotplug/Android.mk b/cpuhotplug/Android.mk index fabb70a..ac0ff0b 100644 --- a/cpuhotplug/Android.mk +++ b/cpuhotplug/Android.mk

[PATCH PM-QA v2 17/25] cputopology: Add cputopology_sanity.sh

2015-02-01 Thread Lisa Nguyen
Every test module has a sanity script. Add one for cputopology to check for topology entries for all cpus. Signed-off-by: Lisa Nguyen --- cputopology/cputopology_sanity.sh | 49 cputopology/cputopology_sanity.txt |1 + 2 files changed, 50 insertions

[PATCH PM-QA v2 09/25] Fix the syntax to call C programs

2015-02-01 Thread Lisa Nguyen
In PM-QA, there are programs written in C (e.g. cpuidle_killer, uevent_reader) that run in the background while some scripts are being. However, remove the extra slash and period when it's not necessary and create variables to store the path of these programs. Signed-off-by: Lisa N

[PATCH PM-QA v2 13/25] Rewrite logic to check for sampling_rate

2015-02-01 Thread Lisa Nguyen
Set the sampling_rate to zero if the sampling_rate attribute cannot be found in either directories listed in the if condition. This will also resolve minor bugs where the sampling_rate is missing. Signed-off-by: Lisa Nguyen --- include/functions.sh |4 +++- 1 file changed, 3 insertions

[PATCH PM-QA v2 07/25] Switches: Add hotplug_allow_cpu0=0

2015-02-01 Thread Lisa Nguyen
Add an entry in Switches.sh to export and set the hotplug_allow_cpu0 variable to zero. This will resolve Android issues where invalid comparisons cannot be made in the cpuhotplug scripts. Android runs the Switches.sh script before it runs any test modules. Signed-off-by: Lisa Nguyen

[PATCH PM-QA v2 06/25] Remove thermal_try_max variable

2015-02-01 Thread Lisa Nguyen
The value of the thermal_try_max variable does not change when running PM-QA. There is no reason to check if the value is zero if it's hardly used at all. Signed-off-by: Lisa Nguyen --- Switches.sh |3 --- thermal/thermal_06.sh |5 - 2 files changed, 8 deletions(-)

[PATCH PM-QA v2 16/25] cpuhotplug: Rename z_sanity_check files to cpuhotplug_99

2015-02-01 Thread Lisa Nguyen
z_sanity_check.sh doesn't have a meaningful name. Rename it to cpuhotplug_99 as the last script to run to see if all cpus are back online after running previous cpuhotplug scripts. Signed-off-by: Lisa Nguyen --- cpuhotplug/cpuhotplug_99.sh |

[PATCH PM-QA v2 00/25] Removing bashisms and other cleanups

2015-02-01 Thread Lisa Nguyen
e the cpuidle_03 test case. 4. Update the PM-QA wiki with new test cases and their descriptions: https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQaSpecification Comments and/or questions are highly encouraged. Lisa Nguyen (25): Fix path to library files and change sh

[PATCH PM-QA v2 15/25] cpuhotplug: Rename 1_sanity_check files to cpuhotplug_00 files

2015-02-01 Thread Lisa Nguyen
1_sanity_check.sh script didn't have a meaningful name. Rename it to cpuhotplug_00 as the first script to check if all cpus are online before the other cpuhotplug scripts begin. Signed-off-by: Lisa Nguyen --- cpuhotplug/1_sanity_check.sh |

[PATCH PM-QA v2 01/25] Fix path to library files and change shebang line

2015-02-01 Thread Lisa Nguyen
'source' is a BASH keyword. Edit the path to the library files by using the POSIX version of the 'source' keyword. Also change the interpreter from #!/bin/bash to #!/bin/sh. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_01.sh |4 ++-- cpufreq/cpufreq_02

[PATCH PM-QA v2 12/25] Remove BASH arrays

2015-02-01 Thread Lisa Nguyen
The syntax for arrays, foo[index], is defined in BASH. Replace BASH arrays with ones that are POSIX compliant. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_06.sh| 20 include/functions.sh | 14 +++ include/thermal_functions.sh | 54

[PATCH PM-QA v2 11/25] Remove unused variables and rename some

2015-02-01 Thread Lisa Nguyen
Remove unused variables and rename some variables to avoid conflicts since they are global. Also, renaming variables will make it easier to understand what variables are assigned to them. Signed-off-by: Lisa Nguyen --- cpuhotplug/cpuhotplug_02.sh |6 +- cpuhotplug/cpuhotplug_03.sh |5

[PATCH PM-QA v2 10/25] cpuidle: Use is_root() function in cpuidle_03

2015-02-01 Thread Lisa Nguyen
Instead of using a command to check if the user is root, use the is_root() function to perform that check in the cpuidle_03.sh script Signed-off-by: Lisa Nguyen --- cpuidle/cpuidle_03.sh |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpuidle/cpuidle_03.sh b/cpuidle

[PATCH PM-QA v2 02/25] Replace double equals with one for comparison

2015-02-01 Thread Lisa Nguyen
Using double equals to evaluate whether two conditions are equal is considered BASH syntax. The POSIX compliant version uses one equal sign for evaluating. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_03.sh|2 +- cpufreq/cpufreq_04.sh|2 +- cpufreq/cpufreq_07.sh

[PATCH PM-QA v2 03/25] Remove sigtrap prefixes for traps

2015-02-01 Thread Lisa Nguyen
Remove signals that begin with SIG* since that is considered a bashism. Use the POSIX-compliant version to list signals to be used with the trap command. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_05.sh |2 +- cpufreq/cpufreq_06.sh |2 +- cpufreq/cpufreq_07.sh |2 +- cpufreq

[PATCH PM-QA v2 05/25] Fix syntax to get the cpu id number

2015-02-01 Thread Lisa Nguyen
Fix the syntax to get the current cpu id number with the POSIX version. Signed-off-by: Lisa Nguyen --- cpuhotplug/cpuhotplug_03.sh |2 +- cpuhotplug/cpuhotplug_04.sh |2 +- cpuhotplug/cpuhotplug_05.sh |2 +- cpuhotplug/cpuhotplug_06.sh |2 +- cpuhotplug/cpuhotplug_07.sh |2

[PATCH PM-QA v2 08/25] cpuhotplug: Rewrite randomize() function

2015-02-01 Thread Lisa Nguyen
$RANDOM is a BASH defined variable. Rewrite the randomize() function to be POSIX-compliant. Signed-off-by: Lisa Nguyen --- cpuhotplug/cpuhotplug_08.sh | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cpuhotplug/cpuhotplug_08.sh b/cpuhotplug/cpuhotplug_08.sh

Re: [PATCH PM-QA 07/18] suspend: Remove bashisms in suspend test module

2015-01-27 Thread Lisa Nguyen
Thanks for pointing that out, Sanjay :) On 27 January 2015 at 04:01, sanjay r wrote: > $checkbashisms -f suspend/*.sh > > possible bashism in suspend/suspend_05.sh line 48 (let ...): > let timer_sleep="$args_power_sleep" > possible bashism in suspend/suspend_05.sh line 68 (let ...): > let

Re: [PATCH PM-QA 18/18] Android.mk: Update test numbers and remove whitespace

2015-01-20 Thread Lisa Nguyen
On 19 January 2015 at 22:59, Amit Kucheria wrote: > On Tue, Jan 20, 2015 at 6:06 AM, Lisa Nguyen wrote: >> Update the Android makefiles in cputopology and cpuhotplug >> since a few subtests have been added or renamed. Remove >> unnecessary whitespace detected by checkpatch

Re: [PATCH PM-QA 14/18] cpuhotplug: Rename z_sanity_check.sh to cpuhotplug_09.sh

2015-01-20 Thread Lisa Nguyen
On 19 January 2015 at 22:57, Amit Kucheria wrote: > On Tue, Jan 20, 2015 at 6:06 AM, Lisa Nguyen wrote: >> Rename z_sanity_check.sh script to cpuhotplug_09.sh to give it a >> more meaningful name and to check if all cpus are back online after >> running previous cpuhotplu

Re: [PATCH PM-QA 00/18] Removing bashisms and other cleanups

2015-01-20 Thread Lisa Nguyen
On 19 January 2015 at 22:55, Amit Kucheria wrote: > On Tue, Jan 20, 2015 at 6:06 AM, Lisa Nguyen wrote: >> [ It's been long overdue and PM-QA gets a makeover... ] > > Indeed. > >> This patchset primarily fixes Linaro Bug# 772 >> (https://bugs.linaro.org/show_bu

[PATCH PM-QA 14/18] cpuhotplug: Rename z_sanity_check.sh to cpuhotplug_09.sh

2015-01-19 Thread Lisa Nguyen
Rename z_sanity_check.sh script to cpuhotplug_09.sh to give it a more meaningful name and to check if all cpus are back online after running previous cpuhotplug tests. Signed-off-by: Lisa Nguyen --- cpuhotplug/cpuhotplug_09.sh | 39 +++ cpuhotplug

[PATCH PM-QA 13/18] cpuhotplug: Rename 1_sanity_check.sh to cpuhotplug_00.sh

2015-01-19 Thread Lisa Nguyen
clear of what the function does. Signed-off-by: Lisa Nguyen --- cpuhotplug/1_sanity_check.sh | 39 --- cpuhotplug/cpuhotplug_00.sh | 39 +++ 2 files changed, 39 insertions(+), 39 deletions(-) delete mode 100755

[PATCH PM-QA 16/18] Switches: Remove thermal_try_max variable

2015-01-19 Thread Lisa Nguyen
Remove thermal_try_max variable since it is not used anywhere in PM-QA nor does its value change at any point. Signed-off-by: Lisa Nguyen --- Switches.sh |3 --- 1 file changed, 3 deletions(-) diff --git a/Switches.sh b/Switches.sh index e01d4c5..111d5cb 100644 --- a/Switches.sh +++ b

[PATCH PM-QA 18/18] Android.mk: Update test numbers and remove whitespace

2015-01-19 Thread Lisa Nguyen
Update the Android makefiles in cputopology and cpuhotplug since a few subtests have been added or renamed. Remove unnecessary whitespace detected by checkpatch as well. Signed-off-by: Lisa Nguyen --- cpufreq/Android.mk |2 +- cpuhotplug/Android.mk | 18 ++ cpuidle

[PATCH PM-QA 07/18] suspend: Remove bashisms in suspend test module

2015-01-19 Thread Lisa Nguyen
Currently, the suspend test module is disabled by default, but make the suspend scripts more POSIX-compliant to be consistent with other scripts. Signed-off-by: Lisa Nguyen --- include/suspend_functions.sh | 20 +--- suspend/suspend_01.sh|9 - suspend

[PATCH PM-QA 17/18] cpufreq: Rewrite logic to check for userspace and powersave governors

2015-01-19 Thread Lisa Nguyen
p" at the end. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_06.sh | 11 +-- cpufreq/cpufreq_08.sh |5 ++--- cpufreq/cpufreq_09.sh |4 ++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/cpufreq/cpufreq_06.sh b/cpufreq/cpufreq_06.sh index 9159c9e..75369bf 10

[PATCH PM-QA 15/18] Add descriptions for cpuhotplug_00.sh and cpuhotplug_09.sh

2015-01-19 Thread Lisa Nguyen
After renaming 1_sanity_script.sh and z_sanity_script.sh to cpuhotplug_00.sh and cpuhotplug_09.sh respectively, provide the text files for these scripts that contain the description of these tests. Signed-off-by: Lisa Nguyen --- cpuhotplug/1_sanity_check.txt |1 - cpuhotplug/cpuhotplug_00

[PATCH PM-QA 06/18] cpuhotplug: Remove bashisms in cpuhotplug scripts

2015-01-19 Thread Lisa Nguyen
Remove bashism in cpuhotplug scripts. $RANDOM is an internal BASH function, so remove it to follow POSIX standards. Signed-off-by: Lisa Nguyen --- cpuhotplug/1_sanity_check.sh|7 +++ cpuhotplug/cpuhotplug_01.sh |5 ++--- cpuhotplug/cpuhotplug_02.sh | 21

[PATCH PM-QA 04/18] cpufreq: Remove bashisms in cpufreq test module

2015-01-19 Thread Lisa Nguyen
Remove bashisms in the cpufreq test module in addition to renaming variables to more meaningful names and minor cleanups. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_01.sh |4 ++-- cpufreq/cpufreq_02.sh |5 ++--- cpufreq/cpufreq_03.sh | 13 ++-- cpufreq

[PATCH PM-QA 10/18] Test.mk: Add sort function

2015-01-19 Thread Lisa Nguyen
Use the sort built-in function to ensure that scripts will be executed in order depending on make version. See the following link for details on return value of the built-in wildcard function: https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html Signed-off-by: Lisa Nguyen

[PATCH PM-QA 08/18] utils: Remove bashisms in utils_sanity.sh

2015-01-19 Thread Lisa Nguyen
Remove bashisms in utils_sanity.sh script. Signed-off-by: Lisa Nguyen --- utils/utils_sanity.sh |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/utils_sanity.sh b/utils/utils_sanity.sh index 84f4905..c5bdcd7 100755 --- a/utils/utils_sanity.sh +++ b/utils

[PATCH PM-QA 12/18] Add cputopology_sanity script

2015-01-19 Thread Lisa Nguyen
Add cputopology_sanity script to check for topology entries for all cpus. Also, all test modules have a sanity script, so add one for cputopology test module. Signed-off-by: Lisa Nguyen --- cputopology/cputopology_sanity.sh | 49 + 1 file changed, 49

[PATCH PM-QA 03/18] cputopology: Remove bashisms in cputopology test module

2015-01-19 Thread Lisa Nguyen
Remove bashisms in the cputopology scripts. Signed-off-by: Lisa Nguyen --- cputopology/cputopology_01.sh |9 - cputopology/cputopology_02.sh |5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/cputopology/cputopology_01.sh b/cputopology/cputopology_01.sh

[PATCH PM-QA 05/18] thermal: Remove bashisms in thermal test module

2015-01-19 Thread Lisa Nguyen
Remove bashism in thermal scripts and remove thermal_try_max variable as it is not used anywhere else nor does its value changes. Rename variables to something more meaningful and improve format for readability. Signed-off-by: Lisa Nguyen --- thermal/thermal_00.sh | 22

[PATCH PM-QA 11/18] Switches: Export hotplug_allow_cpu0

2015-01-19 Thread Lisa Nguyen
Export hotplug_allow_cpu0 to resolve invalid comparison errors from cpuhotplug scripts in Android. Signed-off-by: Lisa Nguyen --- Switches.sh |3 +++ 1 file changed, 3 insertions(+) diff --git a/Switches.sh b/Switches.sh index cc59992..e01d4c5 100644 --- a/Switches.sh +++ b/Switches.sh

[PATCH PM-QA 02/18] cpuidle: Remove bashisms in cpuidle test module

2015-01-19 Thread Lisa Nguyen
Remove bashisms in cpuidle test module to make them POSIX-compliant. Also do some minor cleanups to make the scripts readable. Signed-off-by: Lisa Nguyen --- cpuidle/cpuidle_01.sh | 21 + cpuidle/cpuidle_02.sh |7 +++ cpuidle/cpuidle_03.sh | 17

[PATCH PM-QA 01/18] functions: Remove bashisms in function scripts

2015-01-19 Thread Lisa Nguyen
. However, suspend_functions.sh has not been fully tested since the suspend test module is currently disabled by default in PM-QA. Signed-off-by: Lisa Nguyen --- include/functions.sh | 248 -- include/suspend_functions.sh |4 +- include

[PATCH PM-QA 00/18] Removing bashisms and other cleanups

2015-01-19 Thread Lisa Nguyen
like the cpuidle_03 test case. Comments and/or questions are highly encouraged. Lisa Nguyen (18): functions: Remove bashisms in function scripts cpuidle: Remove bashisms in cpuidle test module cputopology: Remove bashisms in cputopology test module cpufreq: Remove bashisms in cpufreq

Re: [PATCH PM-QA] Remove -1v option from ls command

2014-09-04 Thread Lisa Nguyen
patch merged. Thanks for the ack, Sanjay. On 4 September 2014 23:34, Sanjay Singh Rawat wrote: > > On Friday 05 September 2014 11:54 AM, Lisa Nguyen wrote: >> >> Resolve the "ls: Unknown option '-1'" error in the Android shell >> by removing -1v o

[PATCH PM-QA] Remove -1v option from ls command

2014-09-04 Thread Lisa Nguyen
Resolve the "ls: Unknown option '-1'" error in the Android shell by removing -1v option from ls command used to find number of cpus on a platform. Reported-by: Naresh Kamboju Signed-off-by: Lisa Nguyen --- include/functions.sh |2 +- 1 file changed, 1 insertion(+),

[Inquiry] Anyone still using these pm-qa scripts from QA's common dir?

2014-09-02 Thread Lisa Nguyen
Hi, I am checking with the linaro-dev mailing list to see if anyone is still using these outdated PM-QA scripts: https://git.linaro.org/qa/test-definitions.git/tree/HEAD:/common/scripts/pm-qa I'm planning to delete them by the end of this week if there aren't any objections :) Lisa

[PATCH PM-QA v2] Simplify code to obtain number of cpus for a platform

2014-08-11 Thread Lisa Nguyen
Create a global variable that will look for number of cpus for a platform and use it in multiple functions to make the code simplier to read. Signed-off-by: Lisa Nguyen --- Changes from v1 to v2: - Edit the command to grab the number of cpus by adding the -1v option, showing the cpu numbers in

[PATCH PM-QA] Remove increment variables from check function

2014-08-07 Thread Lisa Nguyen
Remove the pass and fail count variables from the check() function as all the pass/fail/skip counts are done inside the log_end() function. Signed-off-by: Lisa Nguyen --- Note: This was supposed to be part of the refactored pass/skip/fail code, but it got overlooked. include/functions.sh

[PATCH PM-QA] Simplify code to obtain number of cpus for a platform

2014-08-07 Thread Lisa Nguyen
Create a global variable that will look for number of cpus for a platform and use it in multiple functions to make the code simplier to read. Signed-off-by: Lisa Nguyen --- cpufreq/cpufreq_05.sh |6 +++--- cpuhotplug/cpuhotplug_sanity.sh |1 - include/functions.sh

[PATCH PM-QA v4] Refactor pass/fail/skip code in PM-QA

2014-08-04 Thread Lisa Nguyen
follow up patch to update the pwrmgmt test definition, so LAVA can record PM-QA results accurately. Signed-off-by: Lisa Nguyen --- Changes from v3 to v4: - Fix syntax errors that were undetected (e.g. space between a condition and end square bracket in an if statement) that affected the pass/fail

Re: [PATCH PM-QA v3] Refactor pass/fail/skip code in PM-QA

2014-07-31 Thread Lisa Nguyen
On 29 July 2014 19:36, Lisa Nguyen wrote: > Focus on returning the results of each test script rather > than the results of each subtest. This will help to keep the > number of PM-QA test results consistent across multiple boards > regardless of number of frequencies, cores, etc.

[PATCH PM-QA v3] Refactor pass/fail/skip code in PM-QA

2014-07-29 Thread Lisa Nguyen
follow up patch to update the pwrmgmt test definition, so LAVA can record PM-QA results accurately. Signed-off-by: Lisa Nguyen --- Change from v2 to v3: - Fix a silly increment error for skip count cause I didn't look closely enough Changes from v1 to v2: - Rewrite test_status_show() function

[PATCH PM-QA v2] Refactor pass/fail/skip code in PM-QA

2014-07-29 Thread Lisa Nguyen
follow up patch to update the pwrmgmt test definition, so LAVA can record PM-QA results accurately. Signed-off-by: Lisa Nguyen --- Changes from v1 to v2: - Rewrite test_status_show() function - Add description and log_skip() function in thermal_05 - Moved skip/fail/pass counts to log_end() function

Re: [RFC PATCH PM-QA] Refactor pass/fail/skip code in PM-QA

2014-07-28 Thread Lisa Nguyen
On 28 July 2014 13:38, Lisa Nguyen wrote: > On 27 July 2014 23:16, Sanjay Singh Rawat wrote: >> >> >> On Friday 25 July 2014 04:32 AM, Lisa Nguyen wrote: >>> >>> Focus on returning the results of each test script rather >>> than the results of eac

Re: [RFC PATCH PM-QA] Refactor pass/fail/skip code in PM-QA

2014-07-28 Thread Lisa Nguyen
On 27 July 2014 23:16, Sanjay Singh Rawat wrote: > > > On Friday 25 July 2014 04:32 AM, Lisa Nguyen wrote: >> >> Focus on returning the results of each test script rather >> than the results of each subtest. This will help to keep the >> number of pm-qa test r

[RFC PATCH PM-QA] Refactor pass/fail/skip code in PM-QA

2014-07-24 Thread Lisa Nguyen
sible that the logic can be improved, or my explanation can be clearer. Also, once the final version of this patch is accepted and merged, then there will be a follow up patch to update the pwrmgmt test definition, so LAVA can record PM-QA results accurately. Signed-off-by: Lisa Nguyen --- cp

[PATCH PM-QA] thermal: Make subtest results consistent with ok/err

2014-07-21 Thread Lisa Nguyen
To make pm-qa consistent, all thermal subtests should say "ok" or "err" instead of "pass" or "fail". The remaining subtests in pm-qa follow the ok/err scheme. Signed-off-by: Lisa Nguyen --- include/thermal_functions.sh |4 ++-- 1 file changed, 2 ins

[PATCH PM-QA v2] Test.mk: Fix make error 1 issues

2014-07-21 Thread Lisa Nguyen
Modify Test.mk to resolve the following build error: make: [uncheck] Error 1 (ignored). Signed-off-by: Lisa Nguyen --- Changes from v1 to v2: - Forgot to add @ to silence the shell command --- Test.mk |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Test.mk b/Test.mk

[PATCH PM-QA] Test.mk: Fix make error 1 issues

2014-07-17 Thread Lisa Nguyen
Modify Test.mk to resolve the following build error: make: [uncheck] Error 1 (ignored). Signed-off-by: Lisa Nguyen --- Test.mk |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Test.mk b/Test.mk index 89e5cd9..9fad2c4 100644 --- a/Test.mk +++ b/Test.mk @@ -22,7 +22,7

[PATCH v4] pm-qa/cpuhotplug: Enable cpuhotplug on cpu0

2014-07-03 Thread Lisa Nguyen
By default, cpuhotplug does not run on cpu0. However, if we want to allow cpuhotplug to run on cpu0, then we must pass the parameter, hotplug_allow_cpu0=1, to make check. Signed-off-by: Lisa Nguyen --- Changes from v3 to v4: - Remove =~ symbol and rewrote test condition in check_cpuhotplug_files

[PATCH v3] pm-qa/cpuhotplug: Enable cpuhotplug on cpu0

2014-07-02 Thread Lisa Nguyen
By default, cpuhotplug does not run on cpu0. However, if we want to allow cpuhotplug to run on cpu0, then we must pass the parameter, hotplug_allow_cpu0=1, to make check. Signed-off-by: Lisa Nguyen --- Changes from v2 to v3: - Renamed is_cpu0_allowed() function to is_cpu0_hotplug_allowed

  1   2   >