10 # Look for ndbjtie JUnit tests, if not found: skip test.
16 my $vardir = $ENV{MYSQLTEST_VARDIR} or die
"Need MYSQLTEST_VARDIR";
17 my $mysql_test_dir = $ENV{MYSQL_TEST_DIR} or die
"Need MYSQL_TEST_DIR";
18 my $basedir = dirname($mysql_test_dir);
21 # Check if the needed tests are available
23 my $jtie_junit = my_find_file($basedir,
24 [
"storage/ndb/src/ndbjtie/test",
"share/mysql/java"],
25 "ndbjtie-test-*.jar", NOT_REQUIRED);
27 my $jtie_unload_junit = my_find_file($basedir,
28 [
"storage/ndb/src/ndbjtie/jtie/test/unload",
"share/mysql/java"],
29 "jtie-test-unload-*.jar", NOT_REQUIRED);
31 my $F = IO::File->new(
"$vardir/tmp/have_ndbjtie_junit_result.inc",
"w") or die;
33 my $jtie_junit_dir = dirname($jtie_junit);
34 print $F
"--let \$NDBJTIE_JUNIT= $jtie_junit_dir\n";
35 print $F
"--let \$NDBJTIE_JUNIT_JAR= $jtie_junit\n";
36 print $F
"--let \$NDBJTIE_UNLOAD_JUNIT_JAR= $jtie_unload_junit\n";
37 print $F
"--echo Found NDB JTie JUnit tests: '\$NDBJTIE_JUNIT_JAR'\n"
39 print $F
"skip Could not find NDB JTie JUnit tests\n";
45 --source $MYSQLTEST_VARDIR/tmp/have_ndbjtie_junit_result.inc