Hi,
--- Nageswara R Sastry <[EMAIL PROTECTED]> wrote:
> Added test case for checking cpuidle sysfs files.
>
>
> Signed-Off-By: Nageswara R Sastry <[EMAIL PROTECTED]>
> > 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-03 11:13:31.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
I guess you want ">/dev/null 2>&1" to eliminate both STDERR and STDOUT.
> + 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-03 11:07:18.000000000 +0530
> @@ -37,6 +37,7 @@ 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;
Is it really necessary to do hard links instead of symbol links?
Cai Qian
> clean:
> rm -f check_kv_arch
>
> >
-------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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