Debian Codegraph @

mysql-test/suite/ndb/t/clusterj.test

raw
1 #
2 # Run the Cluster/J JUnit tests from MTR
3 #
4
5 # Don't run in asan builds
6 --source include/not_asan.inc
7 --source include/have_ndb.inc
8 --source suite/ndb/include/have_connectorj.inc
9 --source suite/ndb/include/have_clusterj.inc
10 --let JAVA_MIN_REQUIRED_VERSION=1.8
11 --source suite/ndb/include/have_java.inc
12
13 --let JAVA_CLASSPATH=$CLUSTERJ_TEST_JAR
14 --let JAVA_CLASSPATH_1=$CLUSTERJ_JAR
15 # MTR_CLASSPATH automatically added to JAVA_CLASSPATH
16 --let JAVA_JVM_OPTS= -ea -Xcheck:jni
17 --let JAVA_JVM_OPTS_1= -Dclusterj.properties=$MYSQLTEST_VARDIR/tmp/clusterj.properties
18 --let JAVA_JVM_OPTS_2= -Djava.library.path="$NDBCLIENT_LIB_DIR"
19 # Run the cluster-test jar in the same timezone as the
20 # server (set in the environment variable TZ)
21 --let JAVA_JVM_OPTS_3= -Duser.timezone=$TZ
22 --let JAVA_JVM_OPTS_4= -XX:ErrorFile=$MYSQLTEST_VARDIR/tmp/clusterj_jvm_error.file
23 --let JAVA_CLASS= testsuite.clusterj.AllTests
24 --let JAVA_ARGUMENTS= $CLUSTERJ_TEST_JAR
25
26 # Enable debug tests if this is a debug build
27 --source include/check_ndb_debug.inc
28 if ($have_ndb_debug) {
29 --let JAVA_ARGUMENTS= $JAVA_ARGUMENTS --enable-debug-tests
30 }
31
32 --source suite/ndb/include/run_java.inc
33
34 --echo Clean up the temporary clusterj.properties file.
35 --remove_file $MYSQLTEST_VARDIR/tmp/clusterj.properties
36
37 --echo Clean up tables used in the JUnit tests.
38 DROP TABLE a;
39 DROP TABLE allprimitives;
40 DROP TABLE autopkint;
41 DROP TABLE autopkbigint;
42 DROP TABLE autopkmediumint;
43 DROP TABLE autopksmallint;
44 DROP TABLE autopktinyint;
45 DROP TABLE b0;
46 DROP TABLE bigintegertypes;
47 DROP TABLE binarypk;
48 DROP TABLE binarytypes;
49 DROP TABLE bittypes;
50 DROP TABLE blobtypes;
51 DROP TABLE bytepk;
52 DROP TABLE bytestype;
53 DROP TABLE cassandra_byte_array;
54 DROP TABLE cassandra_string;
55 DROP TABLE charsetbig5;
56 DROP TABLE charsetlatin1;
57 DROP TABLE charsetsjis;
58 DROP TABLE charsetswedishutf8;
59 DROP TABLE charsetutf8;
60 DROP TABLE conversation_summary;
61 DROP TABLE datetimetypes;
62 DROP TABLE datetypes;
63 DROP TABLE decimaltypes;
64 DROP TABLE dn2id;
65 DROP TABLE doubletypes;
66 DROP TABLE dynamicstringpks;
67 DROP TABLE floattypes;
68 DROP TABLE hashpk;
69 DROP TABLE hope;
70 DROP TABLE longintstringfk;
71 DROP TABLE longintstringix;
72 DROP TABLE longintstringpk;
73 DROP TABLE longlongstringfk;
74 DROP TABLE longlongstringpk;
75 DROP TABLE longvarbinarypk;
76 DROP TABLE mediumintegertypes;
77 DROP TABLE mediumunsignedtypes;
78 DROP TABLE nullvalues;
79 DROP TABLE shortpk;
80 DROP TABLE stress;
81 DROP TABLE stringtype;
82 DROP TABLE t_basic;
83 DROP TABLE timestamptypes;
84 DROP TABLE timestamp2types;
85 DROP TABLE timetypes;
86 DROP TABLE twopk;
87 DROP TABLE yeartypes;
88 DROP TABLE localetypes;
89 DROP TABLE stringtypes;
90 DROP TABLE subscriber;
91 DROP TABLE hashonlylongintstringpk;
92 DROP TABLE varbinarypk;
93 DROP TABLE varbinarytypes;
94 DROP TABLE IF EXISTS test2.t_basic2;
95 DROP DATABASE IF EXISTS test2;
96