mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
1. add --plugin-dir and --default-auth to mysqltest.
2. dialog plugin now always returns mysql->password if non-empty and the first question is of password type 3. split get_tty_password into get_tty_password_buff and strdup. 4. dialog plugin now uses get_tty_password by default 5. dialog.test 6. moved small tests of individual plugins into a dedicated suite
This commit is contained in:
32
mysql-test/suite/plugins/t/feedback_plugin_send.test
Normal file
32
mysql-test/suite/plugins/t/feedback_plugin_send.test
Normal file
@@ -0,0 +1,32 @@
|
||||
source feedback_plugin_load.test;
|
||||
|
||||
if (!$MTR_FEEDBACK_PLUGIN) {
|
||||
skip MTR_FEEDBACK_PLUGIN is not set;
|
||||
}
|
||||
|
||||
#
|
||||
# Yep. The plugin waits 5 minutes before sending anything,
|
||||
# and there's no way to force it to send anything sooner.
|
||||
# Let's wait, and hope that mtr is started with --parallel and
|
||||
# is doing some work in other workers.
|
||||
#
|
||||
sleep 310;
|
||||
source include/restart_mysqld.inc;
|
||||
|
||||
replace_result https http;
|
||||
perl;
|
||||
$log_error= $ENV{'MYSQLTEST_VARDIR'} . '/log/mysqld.1.err';
|
||||
open(LOG, '<', $log_error) or die "open(< $log_error): $!";
|
||||
|
||||
# Get the first few rows (as there may be different number rows in the log)
|
||||
$i= 0;
|
||||
while ($_=<LOG>)
|
||||
{
|
||||
if (/feedback plugin:.*/)
|
||||
{
|
||||
print "$&\n";
|
||||
break if ($i++ >= 3);
|
||||
}
|
||||
}
|
||||
close LOG;
|
||||
EOF
|
||||
Reference in New Issue
Block a user