Running the JUnit Tests
The tests attempt to launch MariaDB on the port 3336. That MariaDB instance is unlikely to conflict with another MariaDB server on the same machine, because the default port for MariaDB is 3306. If you do encounter a port conflict, either set the c-mxj_test_port
Java property to a port of your choosing, or shut down any instances of MariaDB you have running on the target machine.
The tests suppress output to the console by default. For verbose output, you may set the c-mxj_test_silent
Java property to false
.
- To run the JUnit test suite, the
$CLASSPATH
must include the following:- JUnit
- JMX
- Connector/J
- MySQL Connector/MXJ
- If
connector-mxj.jar
is not present in your download, unzip MariaDB Connector/MXJ source archive.cd mysqldjmx ant dist
Then add
$TEMP/cmxj/stage/connector-mxj/connector-mxj.jar
to theCLASSPATH
. - If you have
junit
, execute the unit tests. From the command line, type:java com.mysql.management.AllTestsSuite
The output should look something like this:
......................................... ......................................... .......... Time: 259.438 OK (101 tests)
Note that the tests are a bit slow near the end, so please be patient.