On Fri, 2008-11-21 at 17:25 +0530, [EMAIL PROTECTED] wrote: > plain text document attachment > (add-default-task-support-in-script-for-10-test.patch) > This patch modifies the script to run the default task for test 10. > > Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Thanks. Regards-- Subrata > > Index: > ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_stress_test.sh > =================================================================== > --- > ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/run_cpuctl_stress_test.sh > +++ > ltp-full-20081031/testcases/kernel/controllers/cpuctl/run_cpuctl_stress_test.sh > @@ -260,6 +260,7 @@ usage () > exit -1; > fi; > TOTAL_TASKS=$TASK_NUM; > + > # Run the default task in a default group > set_def_group; > if [ ! -f cpuctl_def_task04 ]; then > @@ -286,7 +287,7 @@ usage () > if [ -f cpuctl_test04 ] > then > echo TEST NAME:- $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; > echo TASKS PER GROUP=VARIABLE >> > $LTPROOT/output/cpuctl_results_$FILE.txt; > echo "===============================" >> > $LTPROOT/output/cpuctl_results_$FILE.txt; > > @@ -326,6 +327,27 @@ usage () > exit -1; > fi; > TOTAL_TASKS=$TASK_NUM; > + > + # Run the default task in a default group > + set_def_group; > + if [ ! -f cpuctl_def_task04 ]; 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_task04 >>$LTPROOT/output/cpuctl_results_$FILE.txt & > + if [ $? -ne 0 ] > + then > + echo "Error: Could not run ./cpuctl_def_task04" > + cleanup; > + exit -1; > + else > + echo "Succesfully launched def task $! too"; > + fi > ;; > * ) > usage; > > ------------------------------------------------------------------------- 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
