/usr/lib/mysql-testsuite/t/scalability_metrics.test 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | ################################################################################
# Test for plugin scalability_metrics
################################################################################
--source include/have_scalability_metrics_plugin.inc
--source include/have_debug_sync.inc
set debug_sync= 'RESET';
INSTALL PLUGIN scalability_metrics SONAME 'scalability_metrics.so';
SHOW STATUS LIKE 'scalability_metrics%';
SET GLOBAL scalability_metrics_control = ON;
SHOW STATUS LIKE 'scalability_metrics_concurrency';
SHOW STATUS LIKE 'scalability_metrics_queries';
--source include/count_sessions.inc
connect (con1,localhost,root,,);
# test concurrency
let $ID= `SELECT @id := CONNECTION_ID()`;
SET DEBUG_SYNC="func_sleep_before_sleep SIGNAL sleep1";
send SELECT SLEEP(100);
connection default;
SET DEBUG_SYNC= 'now WAIT_FOR sleep1';
let $ignore= `SELECT @id := $ID`;
SHOW STATUS LIKE 'scalability_metrics_concurrency';
SHOW STATUS LIKE 'scalability_metrics_queries';
KILL CONNECTION @id;
--source include/wait_until_count_sessions.inc
connection default;
connection con1;
--error 2013
reap;
--enable_reconnect
--source include/wait_until_connected_again.inc
connection default;
# test reset
SET GLOBAL scalability_metrics_control = OFF;
SHOW STATUS LIKE 'scalability_metrics_concurrency';
SHOW STATUS LIKE 'scalability_metrics_queries';
disconnect con1;
SET GLOBAL scalability_metrics_control = OFF;
SHOW STATUS LIKE 'scalability_metrics%';
UNINSTALL PLUGIN scalability_metrics;
set debug_sync= 'RESET';
|