89 lines
2.4 KiB
Plaintext
89 lines
2.4 KiB
Plaintext
#
|
|
# Run the Cluster/J JUnit tests from MTR
|
|
#
|
|
|
|
# Don't run in asan builds
|
|
--source include/not_asan.inc
|
|
--source include/have_ndb.inc
|
|
--source suite/ndb/include/have_connectorj.inc
|
|
--source suite/ndb/include/have_clusterj.inc
|
|
--let JAVA_MIN_REQUIRED_VERSION=1.8
|
|
--source suite/ndb/include/have_java.inc
|
|
|
|
--let JAVA_CLASSPATH=$CLUSTERJ_TEST_JAR
|
|
--let JAVA_CLASSPATH_1=$CLUSTERJ_JAR
|
|
# MTR_CLASSPATH automatically added to JAVA_CLASSPATH
|
|
--let JAVA_JVM_OPTS= -ea -Xcheck:jni
|
|
--let JAVA_JVM_OPTS_1= -Dclusterj.properties=$MYSQLTEST_VARDIR/tmp/clusterj.properties
|
|
--let JAVA_JVM_OPTS_2= -Djava.library.path="$NDBCLIENT_LIB_DIR"
|
|
# Run the cluster-test jar in the same timezone as the
|
|
# server (set in the environment variable TZ)
|
|
--let JAVA_JVM_OPTS_3= -Duser.timezone=$TZ
|
|
--let JAVA_CLASS= testsuite.clusterj.AllTests
|
|
--let JAVA_ARGUMENTS= $CLUSTERJ_TEST_JAR
|
|
|
|
--source suite/ndb/include/run_java.inc
|
|
|
|
--echo Clean up the temporary clusterj.properties file.
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/clusterj.properties
|
|
|
|
--echo Clean up tables used in the JUnit tests.
|
|
DROP TABLE a;
|
|
DROP TABLE allprimitives;
|
|
DROP TABLE autopkint;
|
|
DROP TABLE autopkbigint;
|
|
DROP TABLE autopkmediumint;
|
|
DROP TABLE autopksmallint;
|
|
DROP TABLE autopktinyint;
|
|
DROP TABLE b0;
|
|
DROP TABLE bigintegertypes;
|
|
DROP TABLE binarypk;
|
|
DROP TABLE binarytypes;
|
|
DROP TABLE bittypes;
|
|
DROP TABLE blobtypes;
|
|
DROP TABLE bytepk;
|
|
DROP TABLE bytestype;
|
|
DROP TABLE cassandra_byte_array;
|
|
DROP TABLE cassandra_string;
|
|
DROP TABLE charsetbig5;
|
|
DROP TABLE charsetlatin1;
|
|
DROP TABLE charsetsjis;
|
|
DROP TABLE charsetswedishutf8;
|
|
DROP TABLE charsetutf8;
|
|
DROP TABLE conversation_summary;
|
|
DROP TABLE datetimetypes;
|
|
DROP TABLE datetypes;
|
|
DROP TABLE decimaltypes;
|
|
DROP TABLE dn2id;
|
|
DROP TABLE doubletypes;
|
|
DROP TABLE floattypes;
|
|
DROP TABLE hashpk;
|
|
DROP TABLE hope;
|
|
DROP TABLE longintstringfk;
|
|
DROP TABLE longintstringix;
|
|
DROP TABLE longintstringpk;
|
|
DROP TABLE longlongstringfk;
|
|
DROP TABLE longlongstringpk;
|
|
DROP TABLE longvarbinarypk;
|
|
DROP TABLE mediumintegertypes;
|
|
DROP TABLE mediumunsignedtypes;
|
|
DROP TABLE nullvalues;
|
|
DROP TABLE shortpk;
|
|
DROP TABLE stress;
|
|
DROP TABLE stringtype;
|
|
DROP TABLE t_basic;
|
|
DROP TABLE timestamptypes;
|
|
DROP TABLE timestamp2types;
|
|
DROP TABLE timetypes;
|
|
DROP TABLE twopk;
|
|
DROP TABLE yeartypes;
|
|
DROP TABLE localetypes;
|
|
DROP TABLE stringtypes;
|
|
DROP TABLE subscriber;
|
|
DROP TABLE hashonlylongintstringpk;
|
|
DROP TABLE varbinarypk;
|
|
DROP TABLE varbinarytypes;
|
|
DROP TABLE IF EXISTS test2.t_basic2;
|
|
DROP DATABASE IF EXISTS test2;
|
|
|