On Tue, 2008-11-04 at 13:45 +0530, Nageswara R Sastry wrote:
> Hi Subrata,
>
> Subrata Modak wrote:
> > Hi Sastry,
> >> Added test case for checking cpuidle sysfs files.
> >>
> >>
> >> Signed-Off-By: Nageswara R Sastry <[EMAIL PROTECTED]>
> >
> > I think you missed out running this somewhere from:
> > ltp/testcases/kernel/power_management/runpwtests.sh
> >
> > I can see that the patch adds this test, installs it as well, but does
> > not run it from:
> > ltp/testcases/kernel/power_management/runpwtests.sh
> >
> > Would you resend an updated Patch along with the successful run result
> > details as well ?
>
>
> Thanks for pointing out this. Please find the results,
Thanks for the updated one. I have merged.
Regards--
Subrata
>
> [EMAIL PROTECTED] ltp-full-20081031]# cd testcases/bin
> [EMAIL PROTECTED] bin]# ./runpwtests.sh
> ...
> ./check_cpuidle_sysfs_files.sh: PASS: Checking cpu idle sysfs files
>
> Attaching here the modified patch.
>
> Regards
> R.Nageswara Sastry
> plain text document attachment (power_management_cpuidle.patch)
> diff -uprN
> ltp-full-20081031/testcases/kernel/power_management/check_cpuidle_sysfs_files.sh
>
> ltp-full-20081031.pwmng/testcases/kernel/power_management/check_cpuidle_sysfs_files.sh
> ---
> ltp-full-20081031/testcases/kernel/power_management/check_cpuidle_sysfs_files.sh
> 1970-01-01 05:30:00.000000000 +0530
> +++
> ltp-full-20081031.pwmng/testcases/kernel/power_management/check_cpuidle_sysfs_files.sh
> 2008-11-04 13:36:57.000000000 +0530
> @@ -0,0 +1,19 @@
> +#!/bin/bash
> +
> +RC=0
> +if [ -d /sys/devices/system/cpu/cpuidle ] ; then
> + for files in current_governor_ro current_driver
> + do
> + cat /sys/devices/system/cpu/cpuidle/${files} 2>&1 >/dev/null
> + if [ $? -ne 0 ] ; then
> + echo "${0}: FAIL: cat ${files}"
> + RC=1
> + fi
> + done
> +fi
> +if [ ${RC} -eq 0 ] ; then
> + echo "${0}: PASS: Checking cpu idle sysfs files"
> +else
> + echo "${0}: FAIL: Checking cpu idle sysfs files"
> +fi
> +#return $RC
> diff -uprN ltp-full-20081031/testcases/kernel/power_management/Makefile
> ltp-full-20081031.pwmng/testcases/kernel/power_management/Makefile
> --- ltp-full-20081031/testcases/kernel/power_management/Makefile
> 2008-10-23 19:01:35.000000000 +0530
> +++ ltp-full-20081031.pwmng/testcases/kernel/power_management/Makefile
> 2008-11-04 13:38:22.000000000 +0530
> @@ -37,6 +37,8 @@ install:
> ln -f config_cpu_freq ../../bin/config_cpu_freq; \
> ln -f config_cpu_idle ../../bin/config_cpu_idle; \
> ln -f config_sched_mc ../../bin/config_sched_mc;
> + ln -f check_cpuidle_sysfs_files.sh
> ../../bin/check_cpuidle_sysfs_files.sh;
> + chmod ugo+x *.sh
> clean:
> rm -f check_kv_arch
>
> diff -uprN ltp-full-20081031/testcases/kernel/power_management/runpwtests.sh
> ltp-full-20081031.pwmng/testcases/kernel/power_management/runpwtests.sh
> --- ltp-full-20081031/testcases/kernel/power_management/runpwtests.sh
> 2008-10-23 19:01:35.000000000 +0530
> +++ ltp-full-20081031.pwmng/testcases/kernel/power_management/runpwtests.sh
> 2008-11-04 13:36:57.000000000 +0530
> @@ -18,13 +18,14 @@
> ##
> ##
>
> ################################################################################
> #
> -# File : test_powermanagement.sh
> +# File : runpwtests.sh
> #
> # Description:
> #
> # Author: Nageswara R Sastry <[EMAIL PROTECTED]>
> #
> # History: 26 Aug 2008 - Created this file
> +# 03 Nov 2008 - Added CPUIDLE sysfs testcase
> #
> #! /bin/sh
>
> @@ -95,3 +96,9 @@ else
> exit 0
> fi
>
> +# Checking cpuidle sysfs interface files
> +check_cpuidle_sysfs_files.sh || RC=$?
> +if [ $RC -eq 1 ] ; then
> + tst_resm TFAIL "CPUIDLE sysfs tests failed"
> +fi
> +
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list