java.lang.Object
org.apache.derbyTesting.functionTests.harness.MultiTest
- public class MultiTest
- extends java.lang.Object
MultiTest is a multiuser test harness. It
runs multiple threads with differing scripts
against an embedded server. For syntax see
grammar.jj
Tests are ended as soon as an unexpected error
has occurred or after the specified test duration
has transpired. The main loop ends by explicitly
quitting (i.e. doing a System.exit()).
Deprecated APIs: this test uses AppStreamWriter instead
of the preferred AppStreamWriter. This is because utilMain()
uses AppStreamWriter (deliberately, i think) so since
that is called from this, there you have it.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_WAIT_FOR_COMPLETION
private static final int MAX_WAIT_FOR_COMPLETION
- See Also:
- Constant Field Values
suite
private static org.apache.derby.impl.tools.ij.mtTestSuite suite
log
private static org.apache.derby.iapi.tools.i18n.LocalizedOutput log
inputDir
private static java.lang.String inputDir
outputDir
private static java.lang.String outputDir
testName
private static java.lang.String testName
MultiTest
public MultiTest()
syntax
public static void syntax()
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
org.apache.derby.impl.tools.ij.ParseException,
java.io.FileNotFoundException
- Main loop
execTesters
private static long execTesters(org.apache.derby.impl.tools.ij.mtTester[] testers)
throws java.io.FileNotFoundException,
java.io.IOException
allAlive
public static boolean allAlive(java.lang.Thread[] threads)
- Search through the list of threads and see
if they are all alive.
allDead
public static boolean allDead(java.lang.Thread[] threads)
- Search through the list of threads and see
if they are all alive.
openFile
private static org.apache.derby.iapi.tools.i18n.LocalizedOutput openFile(java.lang.String dir,
java.lang.String fileName,
java.lang.String suffix)
throws java.io.IOException
- Figure out the name of the log file and open
it
seqRunCases
private static void seqRunCases(java.util.Vector cases,
java.lang.String descr,
java.lang.String inputDir,
java.lang.String outputDir)
throws java.io.FileNotFoundException,
java.io.IOException,
org.apache.derby.impl.tools.ij.ijFatalException
- Sequentially run scripts
getTestName
private static java.lang.String getTestName(java.lang.String cmdFile)
- Given the command file, infer the test name.
Takes the portion of the file name between
the last '.' and the last '/'. e.g.
x/y/Name.suffix -> Name