use of org.voltdb.regressionsuites.MultiConfigSuiteBuilder in project voltdb by VoltDB.
the class TestJDBCMultiNodeConnection method suite.
public static Test suite() throws IOException {
// the suite made here will all be using the tests from this class
MultiConfigSuiteBuilder builder = new MultiConfigSuiteBuilder(TestJDBCMultiNodeConnection.class);
// build up a project builder for the workload
VoltProjectBuilder project = getBuilderForTest();
boolean success;
m_config = new LocalCluster("decimal-default.jar", 4, 5, kfactor, BackendTarget.NATIVE_EE_JNI);
m_config.setHasLocalServer(true);
success = m_config.compile(project);
assertTrue(success);
// add this config to the set of tests to run
builder.addServerConfig(m_config);
return builder;
}
use of org.voltdb.regressionsuites.MultiConfigSuiteBuilder in project voltdb by VoltDB.
the class TestProcedureDetails method suite.
/**
* Build a list of the tests that will be run when TestProcedureDetails gets run by JUnit.
* Use helper classes that are part of the RegressionSuite framework.
* This particular class runs all tests on the the local JNI backend with both
* one and two partition configurations, as well as on the hsql backend.
*
* @return The TestSuite containing all the tests to be run.
*/
public static Test suite() throws IOException {
// the suite made here will all be using the tests from this class
MultiConfigSuiteBuilder builder = new MultiConfigSuiteBuilder(TestProcedureDetails.class);
// build up a project builder for the workload
VoltProjectBuilder project = new VoltProjectBuilder();
project.setUseDDLSchema(true);
project.addLiteralSchema("CREATE TABLE ENG11890 (a INTEGER NOT NULL, b VARCHAR(10));");
project.addPartitionInfo("ENG11890", "a");
// Note that those two stored procedures have @ProcStatsOption annotations,
// every invocation of them will be sampled in the procedure detail table.
project.addProcedures(ProcedureDetailTestSP.class, ProcedureDetailTestMP.class);
// 2-node cluster, 2 sites per host, k = 0 running on the JNI backend
LocalCluster config = new LocalCluster("proceduredetail-jni.jar", 2, 2, 0, BackendTarget.NATIVE_EE_JNI);
// build the jarfile
assertTrue(config.compile(project));
// add this config to the set of tests to run
builder.addServerConfig(config);
return builder;
}
Aggregations