This patch modifies the script to run the default task for test 5.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh | 22 +++++++++++++++++
1 file changed, 22 insertions(+)
Index: ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh
===================================================================
---
ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh
+++ ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh
@@ -219,7 +219,7 @@ NUM_CPUS=`cat /proc/cpuinfo | grep -w pr
echo `date` >> $LTPROOT/output/cpuctl_results_$FILE.txt;
echo `uname -a` >> $LTPROOT/output/cpuctl_results_$FILE.txt;
echo TEST:- $TEST_NAME $TEST_NUM >>
$LTPROOT/output/cpuctl_results_$FILE.txt;
- echo NUM_GROUPS=$NUM_GROUPS >>
$LTPROOT/output/cpuctl_results_$FILE.txt;
+ echo NUM_GROUPS=$NUM_GROUPS +1 \(DEF\)>>
$LTPROOT/output/cpuctl_results_$FILE.txt;
TASKS_IN_GROUP=3;
for i in $(seq 1 $NUM_GROUPS)
do
@@ -251,7 +251,29 @@ NUM_CPUS=`cat /proc/cpuinfo | grep -w pr
exit -1;
fi;
TOTAL_TASKS=$TASK_NUM;
+
+ # Run the default task in a default group
+ set_def_group;
+ if [ ! -f cpuctl_def_task02 ]; then
+ echo "Source file for default task not compiled";
+ echo "Plz check Makefile...Exiting test";
+ cleanup;
+ exit -1;
+ fi
+ MYGROUP=/dev/cpuctl/group_def ;
+ GROUP_NUM=0 MYGROUP=$MYGROUP SCRIPT_PID=$SCRIPT_PID \
+ NUM_CPUS=$NUM_CPUS TEST_NUM=$TEST_NUM TASK_NUM=0 \
+ ./cpuctl_def_task02 >>$LTPROOT/output/cpuctl_results_$FILE.txt &
+ if [ $? -ne 0 ]
+ then
+ echo "Error: Could not run ./cpuctl_def_task02"
+ cleanup;
+ exit -1;
+ else
+ echo "Succesfully launched def task $! too";
+ fi
;;
+
* )
echo "Could not start cpu controller test";
echo "usage: run_cpuctl_test.sh test_num";
-------------------------------------------------------------------------
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