Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7afc6ee8
Commit
7afc6ee8
authored
Sep 23, 2022
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-29615 mtr to use mariadb names
parent
99e14aa5
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
115 additions
and
114 deletions
+115
-114
mysql-test/main/bug47671.test
mysql-test/main/bug47671.test
+1
-1
mysql-test/main/mysqladmin.result
mysql-test/main/mysqladmin.result
+2
-2
mysql-test/main/mysqladmin.test
mysql-test/main/mysqladmin.test
+2
-2
mysql-test/main/mysqlbinlog.result
mysql-test/main/mysqlbinlog.result
+2
-2
mysql-test/main/mysqlbinlog.test
mysql-test/main/mysqlbinlog.test
+2
-2
mysql-test/main/mysqldump-no-binlog.result
mysql-test/main/mysqldump-no-binlog.result
+1
-1
mysql-test/main/mysqldump-no-binlog.test
mysql-test/main/mysqldump-no-binlog.test
+1
-1
mysql-test/main/mysqldump.result
mysql-test/main/mysqldump.result
+41
-41
mysql-test/main/mysqldump.test
mysql-test/main/mysqldump.test
+35
-34
mysql-test/main/openssl_1.result
mysql-test/main/openssl_1.result
+1
-1
mysql-test/main/openssl_1.test
mysql-test/main/openssl_1.test
+1
-1
mysql-test/main/ssl_crl_clients.result
mysql-test/main/ssl_crl_clients.result
+2
-2
mysql-test/main/ssl_crl_clients.test
mysql-test/main/ssl_crl_clients.test
+2
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+22
-22
No files found.
mysql-test/main/bug47671.test
View file @
7afc6ee8
...
...
@@ -5,5 +5,5 @@
--
echo
# Bug#47671 - wrong character-set after upgrade from 5.1.34 to 5.1.39
--
echo
#
--
echo
# Extract only charset information from 'status' command output using regex
--
replace_regex
/.*
m
ysql
.*//
/
Connection
.*//
/
Current
.*//
/
SSL
.*//
/
Using
.*//
/
Server
version
.*//
/
Protocol
.*//
/
UNIX
.*//
/
Uptime
.*//
/
Threads
.*//
/
TCP
.*//
--
replace_regex
/.*
m
ariadb
.*//
/
Connection
.*//
/
Current
.*//
/
SSL
.*//
/
Using
.*//
/
Server
version
.*//
/
Protocol
.*//
/
UNIX
.*//
/
Uptime
.*//
/
Threads
.*//
/
TCP
.*//
--
exec
$MYSQL
-
e
"status"
;
mysql-test/main/mysqladmin.result
View file @
7afc6ee8
mysqld is alive
m
ysql
admin: unknown variable 'database=db1'
Warning: m
ysql
admin: unknown variable 'loose-database=db2'
m
ariadb-
admin: unknown variable 'database=db1'
Warning: m
ariadb-
admin: unknown variable 'loose-database=db2'
mysqld is alive
#
# Bug#58221 : mysqladmin --sleep=x --count=x keeps looping
...
...
mysql-test/main/mysqladmin.test
View file @
7afc6ee8
...
...
@@ -11,13 +11,13 @@
# Bug#10608 mysqladmin breaks on "database" variable in my.cnf
#
--
replace_regex
/.*
m
ysqladmin
.*:
unknown
/
mysql
admin
:
unknown
/
--
replace_regex
/.*
m
ariadb
-
admin
.*:
unknown
/
mariadb
-
admin
:
unknown
/
--
error
7
--
exec
$MYSQLADMIN
--
database
=
db1
--
default
-
character
-
set
=
latin1
-
S
$MASTER_MYSOCK
-
P
$MASTER_MYPORT
-
u
root
--
password
=
ping
2
>&
1
# When mysqladmin finds "loose-database" it shall print
# a warning and continue
--
replace_regex
/
Warning
:
.*
m
ysqladmin
.*:
unknown
/
Warning
:
mysql
admin
:
unknown
/
--
replace_regex
/
Warning
:
.*
m
ariadb
-
admin
.*:
unknown
/
Warning
:
mariadb
-
admin
:
unknown
/
--
exec
$MYSQLADMIN
--
loose
-
database
=
db2
--
default
-
character
-
set
=
latin1
-
S
$MASTER_MYSOCK
-
P
$MASTER_MYPORT
-
u
root
--
password
=
ping
2
>&
1
--
echo
#
...
...
mysql-test/main/mysqlbinlog.result
View file @
7afc6ee8
...
...
@@ -886,7 +886,7 @@ Alternatives are: 'NEVER','AUTO','UNSPEC','DECODE-ROWS'
#
# Expect error for incomplete --base64-output argument.
# MYSQL_BINLOG std_data/master-bin.000001 --base64-output 2>&1
m
ysql
binlog: option '--base64-output' requires an argument
m
ariadb-
binlog: option '--base64-output' requires an argument
#
# Ensure --base64-output=auto outputs the same result as unspecified
# MYSQL_BINLOG -v MYSQLD_DATADIR/master-bin.000001 > MYSQLTEST_VARDIR/tmp/mysqlbinlog_nob64spec.out
...
...
@@ -1267,7 +1267,7 @@ DELIMITER ;
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
m
ysql
binlog Ver VER for OS at ARCH
m
ariadb-
binlog Ver VER for OS at ARCH
#
# Test --rewrite-db
#
...
...
mysql-test/main/mysqlbinlog.test
View file @
7afc6ee8
...
...
@@ -533,7 +533,7 @@ remove_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog.warn;
--
echo
# Expect error for incomplete --base64-output argument.
--
echo
# MYSQL_BINLOG std_data/master-bin.000001 --base64-output 2>&1
# The error produces the absolute path of the mysqlbinlog executable, remove it.
--
replace_regex
/.*
m
ysqlbinlog
.*:/
mysql
binlog
:/
i
--
replace_regex
/.*
m
ariadb
-
binlog
.*:/
mariadb
-
binlog
:/
i
--
error
1
--
exec
$MYSQL_BINLOG
std_data
/
master
-
bin
.
000001
--
base64
-
output
2
>&
1
...
...
@@ -608,7 +608,7 @@ eval SET GLOBAL SERVER_ID = $old_server_id;
#
# MDEV-12372 mysqlbinlog --version output is the same on 10.x as on 5.5.x, and contains not only version
#
replace_regex
/.*
m
ysqlbinlog
(
\
.
exe
)
?
Ver
.*
for
.*
at
[
-
_a
-
zA
-
Z0
-
9
]
+/
mysql
binlog
Ver
VER
for
OS
at
ARCH
/
;
replace_regex
/.*
m
ariadb
-
binlog
(
\
.
exe
)
?
Ver
.*
for
.*
at
[
-
_a
-
zA
-
Z0
-
9
]
+/
mariadb
-
binlog
Ver
VER
for
OS
at
ARCH
/
;
exec
$MYSQL_BINLOG
--
version
;
--
echo
#
...
...
mysql-test/main/mysqldump-no-binlog.result
View file @
7afc6ee8
m
ysql
dump: Error: Binlogging on server not active
m
ariadb-
dump: Error: Binlogging on server not active
mysql-test/main/mysqldump-no-binlog.test
View file @
7afc6ee8
...
...
@@ -2,6 +2,6 @@
--
source
include
/
not_embedded
.
inc
--
replace_regex
/
MASTER_LOG_POS
=
[
0
-
9
]
+/
XX
/
--
replace_result
m
ysqldump
.
exe
mysql
dump
--
replace_result
m
ariadb
-
dump
.
exe
mariadb
-
dump
--
error
2
--
exec
$MYSQL_DUMP
--
compact
--
master
-
data
=
2
test
2
>&
1
mysql-test/main/mysqldump.result
View file @
7afc6ee8
This diff is collapsed.
Click to expand it.
mysql-test/main/mysqldump.test
View file @
7afc6ee8
This diff is collapsed.
Click to expand it.
mysql-test/main/openssl_1.result
View file @
7afc6ee8
...
...
@@ -179,7 +179,7 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
m
ysql
dump: Got error: 2026: "TLS/SSL error: xxxx
m
ariadb-
dump: Got error: 2026: "TLS/SSL error: xxxx
DROP TABLE t1;
GRANT SELECT ON test.* TO bug42158@localhost REQUIRE X509;
FLUSH PRIVILEGES;
...
...
mysql-test/main/openssl_1.test
View file @
7afc6ee8
...
...
@@ -174,7 +174,7 @@ INSERT INTO t1 VALUES (1), (2);
--
exec
$MYSQL_DUMP
--
default
-
character
-
set
=
utf8mb4
--
skip
-
create
-
options
--
skip
-
comments
--
ssl
--
ssl
-
ca
=
$MYSQL_TEST_DIR
/
std_data
/
cacert
.
pem
--
ssl
-
key
=
$MYSQL_TEST_DIR
/
std_data
/
client
-
key
.
pem
--
ssl
-
cert
=
$MYSQL_TEST_DIR
/
std_data
/
client
-
cert
.
pem
test
# With wrong parameters
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
mysqldump
.
exe
mysqldump
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
$MYSQL_DUMP
mariadb
-
dump
.
\exe
''
--
replace_regex
/
TLS
\
/
SSL
error
.*/
TLS
\
/
SSL
error
:
xxxx
/
--
error
2
--
exec
$MYSQL_DUMP
--
default
-
character
-
set
=
utf8mb4
--
skip
-
create
-
options
--
skip
-
comments
--
ssl
--
ssl
-
cert
=
$MYSQL_TEST_DIR
/
std_data
/
client
-
cert
.
pem
test
2
>&
1
...
...
mysql-test/main/ssl_crl_clients.result
View file @
7afc6ee8
...
...
@@ -6,8 +6,8 @@ ERROR 2026 (HY000): TLS/SSL error: certificate revoked
ERROR 2026 (HY000): TLS/SSL error: certificate revoked
############ Test mysqladmin ##############
# Test mysqladmin connecting to a server with a certificate revoked by -crl
m
ysql
admin: connect to server at 'localhost' failed
m
ariadb-
admin: connect to server at 'localhost' failed
error: 'TLS/SSL error: certificate revoked'
# Test mysqladmin connecting to a server with a certificate revoked by -crlpath
m
ysql
admin: connect to server at 'localhost' failed
m
ariadb-
admin: connect to server at 'localhost' failed
error: 'TLS/SSL error: certificate revoked'
mysql-test/main/ssl_crl_clients.test
View file @
7afc6ee8
...
...
@@ -34,11 +34,11 @@ copy_file $MYSQL_TEST_DIR/std_data/server-cert.crl $MYSQL_TMP_DIR/ed1f42db.r0;
let
$admin_suffix
=
--
default
-
character
-
set
=
latin1
-
S
$MASTER_MYSOCK
-
P
$MASTER_MYPORT
-
u
root
--
password
=
ping
;
--
echo
# Test mysqladmin connecting to a server with a certificate revoked by -crl
--
replace_regex
/.*
m
ysqladmin
.*:/
mysql
admin
:/
/
TLS
\
/
SSL
error
:
.*
CRYPT_E_REVOKED
./
TLS
\
/
SSL
error
:
certificate
revoked
/
--
replace_regex
/.*
m
ariadb
-
admin
.*:/
mariadb
-
admin
:/
/
TLS
\
/
SSL
error
:
.*
CRYPT_E_REVOKED
./
TLS
\
/
SSL
error
:
certificate
revoked
/
--
error
1
--
exec
$MYSQLADMIN
$ssl_crl
$admin_suffix
2
>&
1
--
echo
# Test mysqladmin connecting to a server with a certificate revoked by -crlpath
--
replace_regex
/.*
m
ysqladmin
.*:/
mysql
admin
:/
/
TLS
\
/
SSL
error
:
.*
CRYPT_E_REVOKED
./
TLS
\
/
SSL
error
:
certificate
revoked
/
--
replace_regex
/.*
m
ariadb
-
admin
.*:/
mariadb
-
admin
:/
/
TLS
\
/
SSL
error
:
.*
CRYPT_E_REVOKED
./
TLS
\
/
SSL
error
:
certificate
revoked
/
--
error
1
--
exec
$MYSQLADMIN
$ssl_crlpath
$admin_suffix
2
>&
1
mysql-test/mysql-test-run.pl
View file @
7afc6ee8
...
...
@@ -1835,9 +1835,9 @@ sub executable_setup () {
$exe_patch
=
'
patch
'
if
`
patch -v
`;
# Look for the client binaries
$exe_mysqladmin
=
mtr_exe_exists
("
$path_client_bindir
/m
ysql
admin
");
$exe_mysql
=
mtr_exe_exists
("
$path_client_bindir
/m
ysql
");
$exe_mysql_plugin
=
mtr_exe_exists
("
$path_client_bindir
/m
ysql_
plugin
");
$exe_mysqladmin
=
mtr_exe_exists
("
$path_client_bindir
/m
ariadb-
admin
");
$exe_mysql
=
mtr_exe_exists
("
$path_client_bindir
/m
ariadb
");
$exe_mysql_plugin
=
mtr_exe_exists
("
$path_client_bindir
/m
ariadb-
plugin
");
$exe_mariadb_conv
=
mtr_exe_exists
("
$path_client_bindir
/mariadb-conv
");
$exe_mysql_embedded
=
mtr_exe_maybe_exists
("
$bindir
/libmysqld/examples/mysql_embedded
");
...
...
@@ -1860,7 +1860,7 @@ sub executable_setup () {
}
else
{
$exe_mysqltest
=
mtr_exe_exists
("
$path_client_bindir
/m
ysql
test
");
$exe_mysqltest
=
mtr_exe_exists
("
$path_client_bindir
/m
ariadb-
test
");
}
}
...
...
@@ -1871,7 +1871,7 @@ sub client_debug_arg($$) {
my
(
$args
,
$client_name
)
=
@_
;
# Workaround for Bug #50627: drop any debug opt
return
if
$client_name
=~
/^m
ysql
binlog/
;
return
if
$client_name
=~
/^m
ariadb-
binlog/
;
if
(
$opt_debug
)
{
mtr_add_arg
(
$args
,
...
...
@@ -1902,7 +1902,7 @@ sub client_arguments ($;$) {
sub
mysqlbinlog_arguments
()
{
my
$exe
=
mtr_exe_exists
("
$path_client_bindir
/m
ysql
binlog
");
my
$exe
=
mtr_exe_exists
("
$path_client_bindir
/m
ariadb-
binlog
");
my
$args
;
mtr_init_args
(
\
$args
);
...
...
@@ -1914,14 +1914,14 @@ sub mysqlbinlog_arguments () {
sub
mysqlslap_arguments
()
{
my
$exe
=
mtr_exe_maybe_exists
("
$path_client_bindir
/m
ysql
slap
");
my
$exe
=
mtr_exe_maybe_exists
("
$path_client_bindir
/m
ariadb-
slap
");
if
(
$exe
eq
""
)
{
# mysqlap was not found
if
(
defined
$mysql_version_id
and
$mysql_version_id
>=
50100
)
{
mtr_error
("
Could not find the m
ysql
slap binary
");
mtr_error
("
Could not find the m
ariadb-
slap binary
");
}
return
"";
# Don't care about m
ysql
slap
return
"";
# Don't care about m
ariadb-
slap
}
my
$args
;
...
...
@@ -1934,7 +1934,7 @@ sub mysqlslap_arguments () {
sub
mysqldump_arguments
($)
{
my
(
$group_suffix
)
=
@_
;
my
$exe
=
mtr_exe_exists
("
$path_client_bindir
/m
ysql
dump
");
my
$exe
=
mtr_exe_exists
("
$path_client_bindir
/m
ariadb-
dump
");
my
$args
;
mtr_init_args
(
\
$args
);
...
...
@@ -2109,17 +2109,17 @@ sub environment_setup {
# ----------------------------------------------------
# mysql clients
# ----------------------------------------------------
$ENV
{'
MYSQL_CHECK
'}
=
client_arguments
("
m
ysql
check
");
$ENV
{'
MYSQL_CHECK
'}
=
client_arguments
("
m
ariadb-
check
");
$ENV
{'
MYSQL_DUMP
'}
=
mysqldump_arguments
("
.1
");
$ENV
{'
MYSQL_DUMP_SLAVE
'}
=
mysqldump_arguments
("
.2
");
$ENV
{'
MYSQL_SLAP
'}
=
mysqlslap_arguments
();
$ENV
{'
MYSQL_IMPORT
'}
=
client_arguments
("
m
ysql
import
");
$ENV
{'
MYSQL_SHOW
'}
=
client_arguments
("
m
ysql
show
");
$ENV
{'
MYSQL_IMPORT
'}
=
client_arguments
("
m
ariadb-
import
");
$ENV
{'
MYSQL_SHOW
'}
=
client_arguments
("
m
ariadb-
show
");
$ENV
{'
MYSQL_BINLOG
'}
=
mysqlbinlog_arguments
();
$ENV
{'
MYSQL
'}
=
client_arguments
("
m
ysql
");
$ENV
{'
MYSQL_SLAVE
'}
=
client_arguments
("
m
ysql
",
"
.2
");
$ENV
{'
MYSQL_UPGRADE
'}
=
client_arguments
("
m
ysql_
upgrade
");
$ENV
{'
MYSQLADMIN
'}
=
client_arguments
("
m
ysql
admin
");
$ENV
{'
MYSQL
'}
=
client_arguments
("
m
ariadb
");
$ENV
{'
MYSQL_SLAVE
'}
=
client_arguments
("
m
ariadb
",
"
.2
");
$ENV
{'
MYSQL_UPGRADE
'}
=
client_arguments
("
m
ariadb-
upgrade
");
$ENV
{'
MYSQLADMIN
'}
=
client_arguments
("
m
ariadb-
admin
");
$ENV
{'
MYSQL_CLIENT_TEST
'}
=
mysql_client_test_arguments
();
$ENV
{'
EXE_MYSQL
'}
=
$exe_mysql
;
$ENV
{'
MYSQL_PLUGIN
'}
=
$exe_mysql_plugin
;
...
...
@@ -2127,8 +2127,8 @@ sub environment_setup {
$ENV
{'
MARIADB_CONV
'}
=
$exe_mariadb_conv
;
if
(
IS_WINDOWS
)
{
$ENV
{'
MYSQL_INSTALL_DB_EXE
'}
=
mtr_exe_exists
("
$bindir
/sql
$multiconfig
/m
ysql_install_
db
",
"
$bindir
/bin/m
ysql_install_
db
");
$ENV
{'
MYSQL_INSTALL_DB_EXE
'}
=
mtr_exe_exists
("
$bindir
/sql
$multiconfig
/m
ariadb-install-
db
",
"
$bindir
/bin/m
ariadb-install-
db
");
}
my
$client_config_exe
=
...
...
@@ -2211,9 +2211,9 @@ sub environment_setup {
# ----------------------------------------------------
# mysql_tzinfo_to_sql
# ----------------------------------------------------
my
$exe_mysql_tzinfo_to_sql
=
mtr_exe_exists
("
$basedir
/sql
$multiconfig
/m
ysql_tzinfo_to_
sql
",
"
$path_client_bindir
/m
ysql_tzinfo_to_
sql
",
"
$bindir
/sql
$multiconfig
/m
ysql_tzinfo_to_
sql
");
my
$exe_mysql_tzinfo_to_sql
=
mtr_exe_exists
("
$basedir
/sql
$multiconfig
/m
ariadb-tzinfo-to-
sql
",
"
$path_client_bindir
/m
ariadb-tzinfo-to-
sql
",
"
$bindir
/sql
$multiconfig
/m
ariadb-tzinfo-to-
sql
");
$ENV
{'
MYSQL_TZINFO_TO_SQL
'}
=
native_path
(
$exe_mysql_tzinfo_to_sql
);
# ----------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment