8 my $classpath = $ENV{
'MTR_CLASSPATH'} ||
'';
9 my $vardir = $ENV{MYSQLTEST_VARDIR} or die
"Need MYSQLTEST_VARDIR";
12 my $sep = (IS_WINDOWS) ?
';' :
':';
14 # -- look for the junit jar file
15 foreach $jar (split $sep, $classpath) {
16 if($jar =~ m/junit/ && -f $jar) {
20 elsif($jar =~ m/junit/) {
26 # -- write the result to the output file
27 my $F = IO::File->new(
"$vardir/tmp/have_junit_result.inc",
"w") or die;
29 print $F
"--echo Found JUnit JAR in MTR_CLASSPATH\n";
32 print $F
"--skip JAR file not found: \"$notfound\"\n";
35 print $F
"--skip Please specify Junit JAR file in MTR_CLASSPATH env variable\n";
42 --source $MYSQLTEST_VARDIR/tmp/have_junit_result.inc