[
https://issues.apache.org/jira/browse/LUCENE-4463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470678#comment-13470678
]
Robert Muir commented on LUCENE-4463:
-------------------------------------
Here is my current script, just so you see:
{noformat}
#!/bin/bash
> /home/rmuir/log.txt
x=0
while [ $x -lt 1000 ]
do
echo "test iteration number $x"
ant test -Dtestcase=TestFoo -Dtests.method=testBar >> /home/rmuir/log.txt
2>&1
x=$(( $x + 1 ))
done
{noformat}
I edit this every time i need to use it and then just use 'grep -i failed
log.txt' to look for failures.
one problem is it fires up ant, calls resolve,compile,compile-tests all this
stuff each time. this makes it really slow.
so if it could work from ant directly i think it would be much more efficient.
> add support for running the same test method many times
> -------------------------------------------------------
>
> Key: LUCENE-4463
> URL: https://issues.apache.org/jira/browse/LUCENE-4463
> Project: Lucene - Core
> Issue Type: Wish
> Components: general/build
> Reporter: Robert Muir
>
> I have a shell script for this, mike has a python script, its annoying :)
> I want to do something like this:
> ant beast -Dtestcase=XXXX -Dtestmethod=YYYY -Diterations=100
> I would be happy with a simple loop that just invokes 'test' somehow: getting
> a fresh new JVM to each iteration is desirable anyway (so you get fresh
> codecs, etc).
> the -Dtests.iters is not really useful for this because it does not allow
> -Dtestmethod and it does not give a fresh jvm.
> bonus points if it can use multiple jvms at the same time though :)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]