Power management master script modified to integrate ILB testcases

Signed-off-by: poornima nayak <[email protected]>

diff -uprN ltp_orig/testcases/kernel/power_management/runpwtests.sh 
ltp/testcases/kernel/power_management/runpwtests.sh
--- ltp_orig/testcases/kernel/power_management/runpwtests.sh    2009-08-28 
10:54:59.000000000 +0530
+++ ltp/testcases/kernel/power_management/runpwtests.sh 2009-08-28 
12:29:52.000000000 +0530
@@ -69,7 +69,7 @@ is_dual_core; dual_core=$?
 #Checking sched_mc sysfs interface
 #check_config.sh config_sched_mc || RC=$?
 TST_COUNT=1
-if [ $multi_socket -eq $YES -a $dual_core -eq $YES ] ; then
+if [ $multi_socket -eq $YES -a $multi_core -eq $YES ] ; then
        if [ -f /sys/devices/system/cpu/sched_mc_power_savings ] ; then
                if test_sched_mc.sh ; then
                        tst_resm TPASS "SCHED_MC sysfs tests"
@@ -232,7 +232,7 @@ if [ $# -gt 0 -a "$1" = "-exclusive" ]; 
                        if [ $hyper_threaded -eq $YES ]; then
                                for sched_smt in `seq 0 $max_sched_smt`; do
                                        for work_load in ${work_loads_list}; do
-                               : $(( TST_COUNT += 1 ))
+                                               : $(( TST_COUNT += 1 ))
                                                sched_mc_smt_pass_cnt=0
                                                for repeat_test in `seq 1  10`; 
do
                                                        # Testcase to validate 
CPU consolidation for
@@ -260,6 +260,60 @@ if [ $# -gt 0 -a "$1" = "-exclusive" ]; 
                done
                analyze_core_consolidation_result $sched_smt $work_load 
$sched_smt_pass_cnt
        fi
+        # Verify ILB runs in same package as workload
+        if [ $multi_socket -eq $YES -a $multi_core -eq $YES ]; then
+               work_loads_list="ebizzy kernbench"      
+               for sched_mc in `seq 0 $max_sched_mc`; do
+                       for work_load in ${work_loads_list}
+                       do
+                               : $(( TST_COUNT += 1 ))
+                                ilb_test.py -c $sched_mc -w $work_load; RC=$?
+                               if [ $RC -eq 0 ]; then
+                                       tst_resm TPASS "ILB & workload in same 
package for sched_mc=$sched_mc"
+                               else
+                                       if [ $sched_mc -eq 0 ]; then
+                                               tst_resm TPASS "ILB & workload 
is not in same package when sched_mc=0"
+                                       else
+                                               tst_resm TFAIL "ILB did not run 
in same package"
+                                       fi
+                               fi
+                       done
+                       if [ $hyper_threaded -eq $YES ]; then
+                               for sched_smt in `seq 0 $max_sched_smt`; do
+                                       for work_load in ${work_loads_list}; do
+                                               : $(( TST_COUNT += 1 ))
+                                               ilb_test.py -c $sched_mc -t 
sched_smt -w $work_load; RC=$?
+                                               if [ $RC -eq 0 ]; then
+                                                       tst_resm TPASS "ILB & 
workload in same package for sched_mc=$sched_mc"
+                                               else
+                                                       if [ $sched_mc -eq 0 ]; 
then
+                                                               tst_resm TPASS 
"ILB & workload is not in same package when sched_mc=0"
+                                                       else
+                                                               tst_resm TFAIL 
"ILB did not run in same package"    
+                                                       fi
+                                               fi
+                                       done
+                               done
+                       fi
+               done
+       fi
+       if [ $multi_socket -eq $YES -a $hyper_threaded -eq $YES -a $multi_core 
-eq $YES ]; then
+               for sched_smt in `seq 0 $max_sched_smt`; do
+                       for work_load in ${work_loads_list}; do
+                               : $(( TST_COUNT += 1 ))
+                               ilb_test.py -t $sched_smt -w $work_load; RC=$?
+                               if [ $RC -eq 0 ]; then
+                                       tst_resm TPASS "ILB & workload not load 
not in same package for sched_smt=$sched_smt"
+                               else
+                                       if [ $sched_smt -eq 0 ]; then
+                                               tst_resm TPASS "Its oky if ILB 
is not in same package when sched_smt=0"
+                                       else
+                                               tst_resm TFAIL "ILB did not run 
in same package"
+                                       fi
+                               fi
+                       done
+               done
+       fi
 fi
 
 exit $RC

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to