mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
48757ce3c2
mysql-test/include/have_ndb.inc: Remove the "exec test" and instead use the portable way to check an environment variable using "eval select". The value of $NDB_STATUS_OK will this be replace by mysqltest and the query "select "YES" and ndb_status_ok" will be sent to the server and back. mysql-test/mysql-test-run.pl: Move initializetion of NDB_STATUS_OK and only do it once in init part of scripot. This will make it possible to set it to NO if we detect that cluster can't be started.
13 lines
352 B
PHP
13 lines
352 B
PHP
# Check that server is compiled and started with support for NDB
|
|
-- require r/have_ndb.require
|
|
disable_query_log;
|
|
show variables like "have_ndbcluster";
|
|
enable_query_log;
|
|
|
|
# Check that NDB is installed and known to be working
|
|
-- require r/have_ndb_status_ok.require
|
|
disable_query_log;
|
|
eval select "$NDB_STATUS_OK" as ndb_status_ok;
|
|
enable_query_log;
|
|
|
|
|