|
| 1 | +# Run the Cluster/J tests with strict MGM TLS enabled |
| 2 | + |
| 3 | +--source include/have_ndb.inc |
| 4 | +--source include/not_asan.inc |
| 5 | +--source suite/ndb/include/have_connectorj.inc |
| 6 | +--source suite/ndb/include/have_clusterj.inc |
| 7 | +--let JAVA_MIN_REQUIRED_VERSION=1.8 |
| 8 | +--source suite/ndb/include/have_java.inc |
| 9 | + |
| 10 | +--append_file $MYSQLTEST_VARDIR/tmp/clusterj.properties |
| 11 | +com.mysql.clusterj.tls.path=$MYSQLTEST_VARDIR/std_data/ndb-tls/active |
| 12 | +com.mysql.clusterj.tls.strict=1 |
| 13 | +EOF |
| 14 | + |
| 15 | +--let SEP=: |
| 16 | +if (`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows") = 1`) |
| 17 | +{ |
| 18 | +--let SEP=; |
| 19 | +} |
| 20 | + |
| 21 | +exec |
| 22 | + $MTR_JAVA -ea -Xcheck:jni |
| 23 | + -Dclusterj.properties=$MYSQLTEST_VARDIR/tmp/clusterj.properties |
| 24 | + -Djava.library.path=$NDBCLIENT_LIB_DIR |
| 25 | + -Duser.timezone=$TZ |
| 26 | + -Djava.io.tmpdir=$MYSQLTEST_VARDIR/tmp |
| 27 | + -classpath $CLUSTERJ_TEST_JAR$SEP$CLUSTERJ_JAR$SEP$MTR_CLASSPATH |
| 28 | + testsuite.clusterj.AllTests $CLUSTERJ_TEST_JAR |
| 29 | + > $MYSQLTEST_VARDIR/tmp/clusterj_test.log ; |
| 30 | + |
| 31 | +# If the test has succeeded, clean up the properties file and the log file |
| 32 | +--remove_file $MYSQLTEST_VARDIR/tmp/clusterj.properties |
| 33 | +--remove_file $MYSQLTEST_VARDIR/tmp/clusterj_test.log |
| 34 | + |
| 35 | +# Clean up tables used in the JUnit tests. |
| 36 | +DROP TABLE a; |
| 37 | +DROP TABLE allprimitives; |
| 38 | +DROP TABLE autopkint; |
| 39 | +DROP TABLE autopkbigint; |
| 40 | +DROP TABLE autopkmediumint; |
| 41 | +DROP TABLE autopksmallint; |
| 42 | +DROP TABLE autopktinyint; |
| 43 | +DROP TABLE b0; |
| 44 | +DROP TABLE bigintegertypes; |
| 45 | +DROP TABLE binarypk; |
| 46 | +DROP TABLE binarytypes; |
| 47 | +DROP TABLE bittypes; |
| 48 | +DROP TABLE blobtypes; |
| 49 | +DROP TABLE bytepk; |
| 50 | +DROP TABLE bytestype; |
| 51 | +DROP TABLE cassandra_byte_array; |
| 52 | +DROP TABLE cassandra_string; |
| 53 | +DROP TABLE charsetbig5; |
| 54 | +DROP TABLE charsetlatin1; |
| 55 | +DROP TABLE charsetsjis; |
| 56 | +DROP TABLE charsetswedishutf8; |
| 57 | +DROP TABLE charsetutf8; |
| 58 | +DROP TABLE conversation_summary; |
| 59 | +DROP TABLE datetimetypes; |
| 60 | +DROP TABLE datetypes; |
| 61 | +DROP TABLE decimaltypes; |
| 62 | +DROP TABLE dn2id; |
| 63 | +DROP TABLE doubletypes; |
| 64 | +DROP TABLE dynamicstringpks; |
| 65 | +DROP TABLE floattypes; |
| 66 | +DROP TABLE hashpk; |
| 67 | +DROP TABLE hope; |
| 68 | +DROP TABLE longintstringfk; |
| 69 | +DROP TABLE longintstringix; |
| 70 | +DROP TABLE longintstringpk; |
| 71 | +DROP TABLE longlongstringfk; |
| 72 | +DROP TABLE longlongstringpk; |
| 73 | +DROP TABLE longvarbinarypk; |
| 74 | +DROP TABLE mediumintegertypes; |
| 75 | +DROP TABLE mediumunsignedtypes; |
| 76 | +DROP TABLE nullvalues; |
| 77 | +DROP TABLE shortpk; |
| 78 | +DROP TABLE stress; |
| 79 | +DROP TABLE stringtype; |
| 80 | +DROP TABLE t_basic; |
| 81 | +DROP TABLE timestamptypes; |
| 82 | +DROP TABLE timestamp2types; |
| 83 | +DROP TABLE timetypes; |
| 84 | +DROP TABLE twopk; |
| 85 | +DROP TABLE yeartypes; |
| 86 | +DROP TABLE localetypes; |
| 87 | +DROP TABLE stringtypes; |
| 88 | +DROP TABLE subscriber; |
| 89 | +DROP TABLE hashonlylongintstringpk; |
| 90 | +DROP TABLE varbinarypk; |
| 91 | +DROP TABLE varbinarytypes; |
| 92 | +DROP TABLE IF EXISTS test2.t_basic2; |
| 93 | +DROP DATABASE IF EXISTS test2; |
| 94 | + |
| 95 | + |
0 commit comments