/usr/lib/mysql-testsuite/include/have_ndb.inc is in percona-server-test-5.6 5.6.22-rel71.0-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #
# Check if cluster is available by selecting from is.engines
# if an error about no such table occurs bail out
#
disable_result_log;
disable_query_log;
--error 0, 1109
select @have_ndb:= count(*) from information_schema.engines where engine='ndbcluster' and support in ('YES', 'DEFAULT', 'ENABLED');
if ($mysql_errno){
# For backward compatibility, implement old fashioned way
# to check here ie. use SHOW VARIABLES LIKE "have_ndb"
die Can not determine if server supports ndb without is.engines table;
}
if (!`select @have_ndb`){
skip Need ndb engine;
}
enable_query_log;
enable_result_log;
--let NDB_BACKUPS=$NDB_BACKUP_DIR/BACKUP/BACKUP
|