You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2011/05/05 16:55:03 UTC
[jira] [Created] (LUCENE-3076) add -Dtests.codecprovider
add -Dtests.codecprovider
-------------------------
Key: LUCENE-3076
URL: https://issues.apache.org/jira/browse/LUCENE-3076
Project: Lucene - Java
Issue Type: Improvement
Reporter: Robert Muir
Fix For: 4.0
Currently to test a codec (or set of codecs) you have to add them to lucene's core and edit a couple of arrays here and there...
It would be nice if when using the test-framework you could instead specify a codecprovider by classname (possibly containing your own set of huper-duper codecs).
For example I made the following little codecprovider in contrib:
{noformat}
public class AppendingCodecProvider extends CodecProvider {
public AppendingCodecProvider() {
register(new AppendingCodec());
register(new SimpleTextCodec());
}
}
{noformat}
Then, I'm able to run tests with 'ant -lib build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar test-core -Dtests.codecprovider=org.apache.lucene.index.codecs.appending.AppendingCodecProvider', and it always picks from my set of codecs (in this case Appending and SimpleText), and I can set -Dtests.codec=Appending if i want to set just one.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-3076) add -Dtests.codecprovider
Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-3076:
--------------------------------
Attachment: LUCENE-3076.patch
> add -Dtests.codecprovider
> -------------------------
>
> Key: LUCENE-3076
> URL: https://issues.apache.org/jira/browse/LUCENE-3076
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3076.patch
>
>
> Currently to test a codec (or set of codecs) you have to add them to lucene's core and edit a couple of arrays here and there...
> It would be nice if when using the test-framework you could instead specify a codecprovider by classname (possibly containing your own set of huper-duper codecs).
> For example I made the following little codecprovider in contrib:
> {noformat}
> public class AppendingCodecProvider extends CodecProvider {
> public AppendingCodecProvider() {
> register(new AppendingCodec());
> register(new SimpleTextCodec());
> }
> }
> {noformat}
> Then, I'm able to run tests with 'ant -lib build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar test-core -Dtests.codecprovider=org.apache.lucene.index.codecs.appending.AppendingCodecProvider', and it always picks from my set of codecs (in this case Appending and SimpleText), and I can set -Dtests.codec=Appending if i want to set just one.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-3076) add -Dtests.codecprovider
Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029359#comment-13029359 ]
Uwe Schindler commented on LUCENE-3076:
---------------------------------------
bq. possibly containing your own set of huper-duper codecs
I will copypaste that to my brain's speech centre before the talk at Lucene Revolution to entertain you again :-)
> add -Dtests.codecprovider
> -------------------------
>
> Key: LUCENE-3076
> URL: https://issues.apache.org/jira/browse/LUCENE-3076
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3076.patch
>
>
> Currently to test a codec (or set of codecs) you have to add them to lucene's core and edit a couple of arrays here and there...
> It would be nice if when using the test-framework you could instead specify a codecprovider by classname (possibly containing your own set of huper-duper codecs).
> For example I made the following little codecprovider in contrib:
> {noformat}
> public class AppendingCodecProvider extends CodecProvider {
> public AppendingCodecProvider() {
> register(new AppendingCodec());
> register(new SimpleTextCodec());
> }
> }
> {noformat}
> Then, I'm able to run tests with 'ant -lib build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar test-core -Dtests.codecprovider=org.apache.lucene.index.codecs.appending.AppendingCodecProvider', and it always picks from my set of codecs (in this case Appending and SimpleText), and I can set -Dtests.codec=Appending if i want to set just one.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-3076) add -Dtests.codecprovider
Posted by "Simon Willnauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029782#comment-13029782 ]
Simon Willnauer commented on LUCENE-3076:
-----------------------------------------
good idea robert +1 !!
> add -Dtests.codecprovider
> -------------------------
>
> Key: LUCENE-3076
> URL: https://issues.apache.org/jira/browse/LUCENE-3076
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3076.patch
>
>
> Currently to test a codec (or set of codecs) you have to add them to lucene's core and edit a couple of arrays here and there...
> It would be nice if when using the test-framework you could instead specify a codecprovider by classname (possibly containing your own set of huper-duper codecs).
> For example I made the following little codecprovider in contrib:
> {noformat}
> public class AppendingCodecProvider extends CodecProvider {
> public AppendingCodecProvider() {
> register(new AppendingCodec());
> register(new SimpleTextCodec());
> }
> }
> {noformat}
> Then, I'm able to run tests with 'ant -lib build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar test-core -Dtests.codecprovider=org.apache.lucene.index.codecs.appending.AppendingCodecProvider', and it always picks from my set of codecs (in this case Appending and SimpleText), and I can set -Dtests.codec=Appending if i want to set just one.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Commented] (LUCENE-3076) add -Dtests.codecprovider
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029655#comment-13029655 ]
Michael McCandless commented on LUCENE-3076:
--------------------------------------------
+1 this is great!
This means a codec writer can easily run all of Lucene/Solr's tests against his/her codec(s)...
> add -Dtests.codecprovider
> -------------------------
>
> Key: LUCENE-3076
> URL: https://issues.apache.org/jira/browse/LUCENE-3076
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3076.patch
>
>
> Currently to test a codec (or set of codecs) you have to add them to lucene's core and edit a couple of arrays here and there...
> It would be nice if when using the test-framework you could instead specify a codecprovider by classname (possibly containing your own set of huper-duper codecs).
> For example I made the following little codecprovider in contrib:
> {noformat}
> public class AppendingCodecProvider extends CodecProvider {
> public AppendingCodecProvider() {
> register(new AppendingCodec());
> register(new SimpleTextCodec());
> }
> }
> {noformat}
> Then, I'm able to run tests with 'ant -lib build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar test-core -Dtests.codecprovider=org.apache.lucene.index.codecs.appending.AppendingCodecProvider', and it always picks from my set of codecs (in this case Appending and SimpleText), and I can set -Dtests.codec=Appending if i want to set just one.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (LUCENE-3076) add -Dtests.codecprovider
Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved LUCENE-3076.
---------------------------------
Resolution: Fixed
Committed revision 1100175.
> add -Dtests.codecprovider
> -------------------------
>
> Key: LUCENE-3076
> URL: https://issues.apache.org/jira/browse/LUCENE-3076
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Robert Muir
> Fix For: 4.0
>
> Attachments: LUCENE-3076.patch
>
>
> Currently to test a codec (or set of codecs) you have to add them to lucene's core and edit a couple of arrays here and there...
> It would be nice if when using the test-framework you could instead specify a codecprovider by classname (possibly containing your own set of huper-duper codecs).
> For example I made the following little codecprovider in contrib:
> {noformat}
> public class AppendingCodecProvider extends CodecProvider {
> public AppendingCodecProvider() {
> register(new AppendingCodec());
> register(new SimpleTextCodec());
> }
> }
> {noformat}
> Then, I'm able to run tests with 'ant -lib build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar test-core -Dtests.codecprovider=org.apache.lucene.index.codecs.appending.AppendingCodecProvider', and it always picks from my set of codecs (in this case Appending and SimpleText), and I can set -Dtests.codec=Appending if i want to set just one.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org