TestAll

The main test application. JUnit is not used because loops are easier to write in regular java applications (most tests are ran multiple times using different settings).

Methods
static void main(String... args)
Run all tests.
static void main(String... args) throws Exception
Run all tests.
Parameters:
args - the command line arguments
static void printSystemInfo()
Print system information.
static void printSystemInfo()
Print system information.
void afterTest()
Stop the server if it was started.
void afterTest()
Stop the server if it was started.
void beforeTest()
This method is called before a complete set of tests is run.
void beforeTest() throws SQLException
This method is called before a complete set of tests is run. It deletes old database files in the test directory and trace files. It also starts a TCP server if the test uses remote connections.
int getPort()
int getPort()
String toString()
String toString()

Fields
static AbbaLockingDetector abbaLockingDetector
static boolean atLeastOneTestFailed
static boolean big
static String cacheType
static String cipher
static boolean codeCoverage
static String collation
static boolean defrag
static boolean diskResult
static boolean diskUndo
static boolean endless
static boolean googleAppEngine
static boolean lazy
static int lockTimeout
static boolean memory
static boolean multiThreaded
static boolean mvStore
static boolean mvcc
static boolean networked
static boolean reopen
static boolean smallLog
static boolean splitFileSystem
static boolean ssl
static boolean stopOnError
static ArrayList tests
static int throttle
static int throttleDefault
static int traceLevelFile
static boolean traceSystemOut
static boolean traceTest
static boolean travis
static boolean vmlens

abbaLockingDetector

The AB-BA locking detector.

atLeastOneTestFailed

Set to true if any of the tests fail. Used to return an error code from the whole program.

big

If the test should run with many rows.

cacheType

The cache type.

cipher

The cipher to use (null for unencrypted).

codeCoverage

If code coverage is enabled.

collation

If not null the database should be opened with the collation parameter

defrag

If the database should always be defragmented when closing.

diskResult

If a small cache and a low number for MAX_MEMORY_ROWS should be used.

diskUndo

If MAX_MEMORY_UNDO=3 should be used.

endless

If the tests should run forever.

googleAppEngine

If testing on Google App Engine.

lazy

If lazy queries should be used.

lockTimeout

The lock timeout to use

memory

If in-memory databases should be used.

multiThreaded

If the multi-threaded mode should be used.

mvStore

Whether the MVStore storage is used.

mvcc

If the multi version concurrency control mode should be used.

networked

If remote database connections should be used.

reopen

Test using the recording file system.

smallLog

If the transaction log should be kept small (that is, the log should be switched early).

splitFileSystem

Test the split file system.

ssl

If SSL should be used for remote connections.

stopOnError

If the test should stop when the first error occurs.

tests

The list of tests.

throttle

The THROTTLE value to use.

throttleDefault

The THROTTLE value to use by default.

traceLevelFile

The file trace level value to use.

traceSystemOut

If TRACE_LEVEL_SYSTEM_OUT should be set to 2 (for debugging only).

traceTest

If test trace information should be written (for debugging only).

travis

If only fast/CI/Jenkins/Travis tests should be run.

vmlens

the vmlens.com race condition tool