|
323 | 323 | our $exe_ndb_mgm;
|
324 | 324 | our $exe_ndb_waiter;
|
325 | 325 | our $path_ndb_tools_dir;
|
| 326 | +our $path_ndb_examples_dir; |
| 327 | +our $exe_ndb_example; |
326 | 328 | our $file_ndb_testrun_log;
|
327 | 329 |
|
328 | 330 | our @data_dir_lst;
|
|
1233 | 1235 | mtr_script_exists("$glob_basedir/scripts/mysql_fix_privilege_tables",
|
1234 | 1236 | "/usr/bin/false");
|
1235 | 1237 | $path_ndb_tools_dir= mtr_path_exists("$glob_basedir/storage/ndb/tools");
|
| 1238 | + $path_ndb_examples_dir= mtr_path_exists("$glob_basedir/storage/ndb/ndbapi-examples"); |
| 1239 | + $exe_ndb_example= mtr_exe_exists("$path_ndb_examples_dir/ndbapi_simple/ndbapi_simple", |
| 1240 | + $exe_mysqld); |
1236 | 1241 | $exe_ndb_mgm= "$glob_basedir/storage/ndb/src/mgmclient/ndb_mgm";
|
1237 | 1242 | $exe_ndb_waiter= "$glob_basedir/storage/ndb/tools/ndb_waiter";
|
1238 | 1243 | $exe_ndbd= "$glob_basedir/storage/ndb/src/kernel/ndbd";
|
|
1297 | 1302 | }
|
1298 | 1303 |
|
1299 | 1304 | $path_ndb_tools_dir= "$glob_basedir/bin";
|
| 1305 | + $path_ndb_examples_dir= "$glob_basedir/ndbapi-examples"; |
1300 | 1306 | $exe_ndb_mgm= "$glob_basedir/bin/ndb_mgm";
|
1301 | 1307 | $exe_ndb_waiter= "$glob_basedir/bin/ndb_waiter";
|
1302 | 1308 | $exe_ndbd= "$glob_basedir/bin/ndbd";
|
@@ -1344,6 +1350,20 @@ ()
|
1344 | 1350 | ($lib_udf_example ? dirname($lib_udf_example) : "") .
|
1345 | 1351 | ($ENV{'LD_LIBRARY_PATH'} ? ":$ENV{'LD_LIBRARY_PATH'}" : "");
|
1346 | 1352 |
|
| 1353 | + # -------------------------------------------------------------------------- |
| 1354 | + # Add the path where libndbclient can be found |
| 1355 | + # -------------------------------------------------------------------------- |
| 1356 | + $ENV{'LD_LIBRARY_PATH'}= |
| 1357 | + (mtr_path_exists("$glob_basedir/storage/ndb/src/.libs") ? "$glob_basedir/storage/ndb/src/.libs" : "") . |
| 1358 | + ($ENV{'LD_LIBRARY_PATH'} ? ":$ENV{'LD_LIBRARY_PATH'}" : ""); |
| 1359 | + |
| 1360 | + # -------------------------------------------------------------------------- |
| 1361 | + # Add the path where libmysqlclient can be found |
| 1362 | + # -------------------------------------------------------------------------- |
| 1363 | + $ENV{'LD_LIBRARY_PATH'}= |
| 1364 | + (mtr_path_exists("$glob_basedir/libmysql_r/.libs") ? "$glob_basedir/libmysql_r/.libs" : "") . |
| 1365 | + ($ENV{'LD_LIBRARY_PATH'} ? ":$ENV{'LD_LIBRARY_PATH'}" : ""); |
| 1366 | + |
1347 | 1367 |
|
1348 | 1368 | # --------------------------------------------------------------------------
|
1349 | 1369 | # Also command lines in .opt files may contain env vars
|
|
1360 | 1380 | $ENV{'MASTER_MYSOCK1'}= $master->[1]->{'path_sock'};
|
1361 | 1381 | $ENV{'MASTER_MYPORT'}= $master->[0]->{'port'};
|
1362 | 1382 | $ENV{'MASTER_MYPORT1'}= $master->[1]->{'port'};
|
| 1383 | + $ENV{'SLAVE_MYSOCK'}= $slave->[0]->{'path_sock'}; |
1363 | 1384 | $ENV{'SLAVE_MYPORT'}= $slave->[0]->{'port'};
|
1364 | 1385 | $ENV{'SLAVE_MYPORT1'}= $slave->[1]->{'port'};
|
1365 | 1386 | $ENV{'SLAVE_MYPORT2'}= $slave->[2]->{'port'};
|
@@ -3802,7 +3823,10 @@ ($)
|
3802 | 3823 | $ENV{'NDB_BACKUP_DIR'}= $clusters->[0]->{'data_dir'};
|
3803 | 3824 | $ENV{'NDB_DATA_DIR'}= $clusters->[0]->{'data_dir'};
|
3804 | 3825 | $ENV{'NDB_TOOLS_DIR'}= $path_ndb_tools_dir;
|
| 3826 | + $ENV{'NDB_EXAMPLES_DIR'}= $path_ndb_examples_dir; |
| 3827 | + $ENV{'MY_NDB_EXAMPLES_BINARY'}= ($exe_ndb_example eq "$path_ndb_examples_dir/ndbapi_simple/ndbapi_simple")?$exe_ndb_example:""; |
3805 | 3828 | $ENV{'NDB_TOOLS_OUTPUT'}= $file_ndb_testrun_log;
|
| 3829 | + $ENV{'NDB_EXAMPLES_OUTPUT'}= $file_ndb_testrun_log; |
3806 | 3830 | $ENV{'NDB_CONNECTSTRING'}= $opt_ndbconnectstring;
|
3807 | 3831 |
|
3808 | 3832 | my $exe= $exe_mysqltest;
|
|
0 commit comments