3 # Look for Apache OpenJPA library, if not found: skip test. 
   12 my $classpath = $ENV{
'MTR_CLASSPATH'} || 
'';
 
   13 my $vardir = $ENV{MYSQLTEST_VARDIR} or die 
"Need MYSQLTEST_VARDIR";
 
   16 my $sep = (IS_WINDOWS) ? 
';' : 
':';
 
   18 # -- look for the openjpa jar file 
   20 foreach $jar (split $sep, $classpath) {
 
   21   if($jar =~ m/openjpa/  && -f $jar) {
 
   24   elsif($jar =~ m/openjpa/) {
 
   30 # -- write the result to the output file 
   31 my $F = IO::File->new(
"$vardir/tmp/have_openjpa_result.inc", 
'w') or die;
 
   34   print $F 
"--echo Found clusterj-openjpa.jar in MTR_CLASSPATH\n" 
   37   print $F 
"--skip JAR file not found: \"$notfound\"\n";
 
   40   print $F 
"--skip Could not find Apache OpenJPA jar in MTR_CLASSPATH ($classpath)\n";
 
   47 --source $MYSQLTEST_VARDIR/tmp/have_openjpa_result.inc