[
https://issues.apache.org/jira/browse/SOLR-11749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16456944#comment-16456944
]
Mark Miller commented on SOLR-11749:
------------------------------------
Just as an example, your Junit tests would end up looking something like this:
{noformat}
public class TestSolrScriptsStuff1 extends Assert {
public TestSolrScriptsStuff1() {
}
@BeforeClass
public static void setUpBeforeClass() throws Exception {
String[] cmd = new String[]{"bash", "test-setup.sh"};
int exitVal = Util.runCmd(cmd).returnCode;
if (exitVal > 0) {
fail("Setup Failed!");
}
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
String[] cmd = new String[] {"bash",
"test-teardown.sh"};
int exitVal = Util.runCmd(cmd).returnCode;
if (exitVal > 0) {
fail("Tear Down Failed!");
}
}
@Test
public void test1() throws Exception {
String[] cmd = new String[]{"bash", "test1.sh"};
Util.PbResult result = Util.runCmd(cmd);
assertEquals("Testing test1.sh failed", 0, result.returnCode);
}
@Test
public void test2() throws Exception {
String[] cmd = new String[]{"bash", "test2.sh"};
Util.PbResult result = Util.runCmd(cmd);
assertEquals("Testing test2.sh failed", 0, result.returnCode);
}
}{noformat}
> regression-test-like functionality for bin/solr*
> ------------------------------------------------
>
> Key: SOLR-11749
> URL: https://issues.apache.org/jira/browse/SOLR-11749
> Project: Solr
> Issue Type: Wish
> Security Level: Public(Default Security Level. Issues are Public)
> Components: scripts and tools
> Reporter: Christine Poerschke
> Assignee: Jason Gerlowski
> Priority: Minor
> Attachments: SOLR-11749.patch, SOLR-11749.patch, SOLR-11749.patch,
> SOLR-11749.patch, SOLR-11749.patch, test-output.txt
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]