This testcase test sched_smt_power_saving interface with valid and inavlid values.
Signed-off-by: poornima nayak <[email protected]> diff -uprN ltp_orig/testcases/kernel/power_management/test_sched_smt.sh ltp/testcases/kernel/power_management/test_sched_smt.sh --- ltp_orig/testcases/kernel/power_management/test_sched_smt.sh 1969-12-31 19:00:00.000000000 -0500 +++ ltp/testcases/kernel/power_management/test_sched_smt.sh 2009-04-17 16:59:25.000000000 -0400 @@ -0,0 +1,20 @@ +#!/bin/bash + +. pm_include.sh +valid_input="0 1" +invalid_input="a abcefg x1999 xffff -1 -00000 +200000000000000000000000000000000000000000000000000000000000000000000000000000 +ox324 -0xfffffffffffffffffffff" +test_file="/sys/devices/system/cpu/sched_smt_power_savings" +if [ ! -f ${test_file} ] ; then + echo "MISSING_FILE: missing file ${test_file}" + exit $MISSING_FILE +fi + +echo "${0}: ---Valid test cases---" +check_input "${valid_input}" valid $test_file +RC=$? +echo "${0}: ---Invalid test cases---" +check_input "${invalid_input}" invalid $test_file +RC=$(( RC | $? )) +exit $RC ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
