Hi Liu,
What I could see there is that the ltpstress.sh knows nothing about which test
case it should run in parallel and which should run in sequence. If you take
a look a the script you'll see:
${LTPROOT}/tools/rand_lines -g ${LTPROOT}/runtest/stress.part1 >
${TMP}/stress.part1
${LTPROOT}/tools/rand_lines -g ${LTPROOT}/runtest/stress.part2 >
${TMP}/stress.part2
${LTPROOT}/tools/rand_lines -g ${LTPROOT}/runtest/stress.part3 >
${TMP}/stress.part3
Here we're creating the test file, rand_lines is just a tool that take the
original file and print the content in a random order.
${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress1 -n stress1 -l
$logfile -f ${TMP}/stress.part1 -o $output1 &
${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress2 -n stress2 -l
$logfile -f ${TMP}/stress.part2 -o $output2 &
${LTPROOT}/pan/pan -e -p -q -S -t ${hours}h -a stress3 -n stress3 -l
$logfile -f ${TMP}/stress.part3 -o $output3 &
Here is where we start running all tests, based on the files that were created
before.
So, the script just take the stress.partx file, create another one that has
the same content but in a random order and run it, so it knows nothing about
what is inside these test case files, running all files in parallel.
The way we can separate the tests is putting them in different test case
files. All tests that need to be run in sequence should be in the same test
file, and tests that could be run in parallel could be in different test
files.
Basically, the intelligence here is at how the test files are organized.
Thanks,
Ricardo Salveti
On Wednesday 11 July 2007 23:30:39 Liu, Jingnan (GE Healthcare, consultant)
wrote:
>Hi all:
>
> I have some questions on stress test. I saw following
>description about stress test "The script runs similar test cases in
>parallel and different test cases in sequence in order to avoid
>intermittent failures caused by running into the same resources or
>interfering with one another", but i looked into the ltpstress.sh script
>and find test cases in stress.part1 to stress.part3 are run simultaneity
>and the order of the testcases is reseted use /tools/rand_lines. There
>how we insure "script runs similar test cases in parallel and different
>test cases in sequence in order to avoid intermittent failures caused by
>running into the same resources or interfering with one another"
>mentioned above??
>
>best regards
>jingnan
--
Ricardo Salveti de Araujo
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list