9 my $name = $ENV{NDBAPITEST_NAME} or die
"Need NDBAPITEST_NAME";
10 my $args = $ENV{NDBAPITEST_ARGS};
11 my $max_lines = $ENV{NDBAPITEST_MAXLINES} || 200;
12 my $mysql_test_dir = $ENV{MYSQL_TEST_DIR} or die
"Need MYSQL_TEST_DIR";
13 my $basedir = dirname($mysql_test_dir);
14 my $test_bin = my_find_bin($basedir,
15 [
"storage/ndb/test/ndbapi",
"bin"],
18 my $vardir = $ENV{MYSQLTEST_VARDIR} or die
"Need MYSQLTEST_VARDIR";
19 my $F = IO::File->new(
"$vardir/tmp/run_ndbapitest.result",
"w") or die;
22 print $F
"skip Could not find $name;\n";
26 if ($ENV{
'MYSQL_TMP_DIR'})
28 $ENV{
'NDBT_TMP_DIR'} = $ENV{
'MYSQL_TMP_DIR'};
32 $cmd .=
" $args" if $args;
33 my $res = exec_print_on_error($cmd, $max_lines);
36 # Test program suceeded
42 print $F
"die Test program failed!;\n";
48 --source $MYSQLTEST_VARDIR/tmp/run_ndbapitest.result