9 # Looks for MySQL Connector/J JAR file in MTR_CLASSPATH
13 my $classpath = $ENV{
'MTR_CLASSPATH'} ||
'';
14 my $vardir = $ENV{MYSQLTEST_VARDIR} or die
"Need MYSQLTEST_VARDIR";
17 my $sep = (IS_WINDOWS) ?
';' :
':';
20 # -- look for the Connctor/J jar file
21 foreach $jar (split $sep, $classpath) {
22 if($jar =~ m/mysql-connector/ && -f $jar) {
26 elsif($jar =~ m/mysql-connector/) {
32 # -- write the result to the output file
33 my $F = IO::File->new(
"$vardir/tmp/have_connectorj_result.inc",
"w") or die;
35 print $F
"--echo Found Connector/J JAR in MTR_CLASSPATH\n";
38 print $F
"--skip JAR file not found: \"$notfound\"\n";
41 print $F
"--skip Please specify Connector/J JAR file in MTR_CLASSPATH env variable\n";
48 --source $MYSQLTEST_VARDIR/tmp/have_connectorj_result.inc