10 # Look for ndb_dist_pric.sql, 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 $sql_file = my_find_file($basedir,
24 [
"storage/ndb/tools",
"share/mysql/"],
25 "ndb_dist_priv.sql", NOT_REQUIRED);
27 my $F = IO::File->new(
"$vardir/tmp/have_ndb_dist_priv_result.inc",
"w") or die;
29 print $F
"--let \$NDB_DIST_PRIV_SQL= $sql_file\n";
33 print $F
"skip Could not find ndb_dist_priv.sql;\n";
39 --source $MYSQLTEST_VARDIR/tmp/have_ndb_dist_priv_result.inc