mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
merge
This commit is contained in:
1
mysql-test/t/ipv4_as_ipv6-master.opt
Normal file
1
mysql-test/t/ipv4_as_ipv6-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--skip-name-resolve --bind-address=0.0.0.0
|
65
mysql-test/t/ipv4_as_ipv6.test
Normal file
65
mysql-test/t/ipv4_as_ipv6.test
Normal file
@ -0,0 +1,65 @@
|
||||
# Copyright (C) 2009 SUN Microsystems
|
||||
# All rights reserved. Use is subject to license terms.
|
||||
# Author: Horst Hunger
|
||||
# Nov. 19, 2009
|
||||
# Test of ipv4 (127.0.0.1) in ipv6 format
|
||||
# Options: --skip-name-resolve, --bind-address=0.0.0.0 (see corresponding opt file).
|
||||
#
|
||||
# Can't be tested with windows due to mixed format like 0::0000:FFFF:127.0.0.1
|
||||
--source include/not_windows.inc
|
||||
# Can't be tested with embedded server
|
||||
--source include/not_embedded.inc
|
||||
|
||||
# Save the initial number of concurrent sessions
|
||||
--source include/count_sessions.inc
|
||||
|
||||
echo =============Test of '127.0.0.1' (IPv4) ===========================;
|
||||
let $IPv6= 127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0:0:0:0:FFFF:127.0.0.1' ===================;
|
||||
let $IPv6= 0:0:0:0:0:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0000:0000:0000:0000:0000:FFFF:127.0.0.1' ====;
|
||||
let $IPv6= 0000:0000:0000:0000:0000:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0000:0000:0:0000:FFFF:127.0.0.1' ====;
|
||||
let $IPv6= 0:0000:0000:0:0000:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0::0000:FFFF:127.0.0.1' ====;
|
||||
let $IPv6= 0::0000:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0:0:0:0:FFFF:127.0.0.1/96' ================;
|
||||
let $IPv6= 0:0:0:0:0:FFFF:127.0.0.1/96;
|
||||
#--source include/ipv6_clients.inc
|
||||
#--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::FFFF:127.0.0.1' ===========================;
|
||||
let $IPv6= ::FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::FFFF:127.0.0.1/96' ========================;
|
||||
let $IPv6= ::FFFF:127.0.0.1/96;
|
||||
#--source include/ipv6_clients.inc
|
||||
#--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::1' ========================;
|
||||
let $IPv6= ::1;
|
||||
--echo connect (con1, $IPv6, root, , test, MASTER_MYPORT,);
|
||||
--disable_query_log
|
||||
--error 2003,2006
|
||||
connect (con1, $IPv6, root, , test, $MASTER_MYPORT,);
|
||||
--enable_query_log
|
||||
|
||||
# Wait till all disconnects are completed
|
||||
--source include/wait_until_count_sessions.inc
|
1
mysql-test/t/ipv4_as_ipv6_win-master.opt
Normal file
1
mysql-test/t/ipv4_as_ipv6_win-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--skip-name-resolve --bind-address=0.0.0.0
|
31
mysql-test/t/ipv4_as_ipv6_win.test
Normal file
31
mysql-test/t/ipv4_as_ipv6_win.test
Normal file
@ -0,0 +1,31 @@
|
||||
# Copyright (C) 2009 SUN Microsystems
|
||||
# All rights reserved. Use is subject to license terms.
|
||||
# Author: Horst Hunger
|
||||
# Nov. 19, 2009
|
||||
# Test of ipv4 (127.0.0.1) in ipv6 format
|
||||
# Options: --skip-name-resolve, --bind-address=0.0.0.0 (see corresponding opt file).
|
||||
#
|
||||
# For windows due to missing the mixed format like 0::0000:FFFF:127.0.0.1
|
||||
--source include/windows.inc
|
||||
# Can't be tested with embedded server
|
||||
--source include/not_embedded.inc
|
||||
|
||||
# Save the initial number of concurrent sessions
|
||||
--source include/count_sessions.inc
|
||||
|
||||
echo =============Test of '127.0.0.1' (IPv4) ===========================;
|
||||
let $IPv6= 127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::1' ========================;
|
||||
let $IPv6= ::1;
|
||||
--echo connect (con1, $IPv6, root, , test, MASTER_MYPORT);
|
||||
--disable_query_log
|
||||
--error 2003,2006
|
||||
connect (con1, $IPv6, root, , test, $MASTER_MYPORT);
|
||||
--enable_query_log
|
||||
connection default;
|
||||
|
||||
# Wait till all disconnects are completed
|
||||
--source include/wait_until_count_sessions.inc
|
1
mysql-test/t/ipv6-master.opt
Normal file
1
mysql-test/t/ipv6-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--skip-name-resolve --bind-address=::
|
79
mysql-test/t/ipv6.test
Normal file
79
mysql-test/t/ipv6.test
Normal file
@ -0,0 +1,79 @@
|
||||
# Copyright (C) 2009 SUN Microsystems
|
||||
# All rights reserved. Use is subject to license terms.
|
||||
# Author: Horst Hunger
|
||||
# Nov. 19, 2009
|
||||
# Test of ipv6 format
|
||||
# Options: --skip-name-resolve, --bind-address=:: (see corresponding opt file).
|
||||
#
|
||||
--source include/check_ipv6.inc
|
||||
|
||||
# Can't be tested with windows due to the mixed format like 0:0:0:0:0:FFFF:127.0.0.1
|
||||
--source include/not_windows.inc
|
||||
# Can't be tested with embedded server
|
||||
--source include/not_embedded.inc
|
||||
|
||||
# Save the initial number of concurrent sessions
|
||||
--source include/count_sessions.inc
|
||||
|
||||
echo =============Test of '::1' ========================================;
|
||||
let $IPv6= ::1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::1/128' ====================================;
|
||||
let $IPv6= ::1/128;
|
||||
#--source include/ipv6_clients.inc
|
||||
#--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0000:0000:0000:0000:0000:0000:0000:0001' ====;
|
||||
let $IPv6= 0000:0000:0000:0000:0000:0000:0000:0001;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0:0:0:0:0:0:1' ============================;
|
||||
let $IPv6= 0:0:0:0:0:0:0:1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '127.0.0.1' (IPv4) ===========================;
|
||||
let $IPv6= 127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0:0:0:0:FFFF:127.0.0.1' ===================;
|
||||
let $IPv6= 0:0:0:0:0:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0000:0000:0000:0000:0000:FFFF:127.0.0.1' ====;
|
||||
let $IPv6= 0000:0000:0000:0000:0000:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0000:0000:0:0000:FFFF:127.0.0.1' ====;
|
||||
let $IPv6= 0:0000:0000:0:0000:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0::0000:FFFF:127.0.0.1' ====;
|
||||
let $IPv6= 0::0000:FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0:0:0:0:FFFF:127.0.0.1/96' ================;
|
||||
let $IPv6= 0:0:0:0:0:FFFF:127.0.0.1/96;
|
||||
#--source include/ipv6_clients.inc
|
||||
#--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::FFFF:127.0.0.1' ===========================;
|
||||
let $IPv6= ::FFFF:127.0.0.1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::FFFF:127.0.0.1/96' ========================;
|
||||
let $IPv6= ::FFFF:127.0.0.1/96;
|
||||
#--source include/ipv6_clients.inc
|
||||
#--source include/ipv6.inc
|
||||
|
||||
# Wait till all disconnects are completed
|
||||
--source include/wait_until_count_sessions.inc
|
1
mysql-test/t/ipv6_win-master.opt
Normal file
1
mysql-test/t/ipv6_win-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--skip-name-resolve --bind-address=::
|
39
mysql-test/t/ipv6_win.test
Normal file
39
mysql-test/t/ipv6_win.test
Normal file
@ -0,0 +1,39 @@
|
||||
# Copyright (C) 2009 SUN Microsystems
|
||||
# All rights reserved. Use is subject to license terms.
|
||||
# Author: Horst Hunger
|
||||
# Nov. 19, 2009
|
||||
# Test of ipv6 format
|
||||
# Options: --skip-name-resolve, --bind-address=:: (see corresponding opt file).
|
||||
#
|
||||
--source include/check_ipv6.inc
|
||||
|
||||
# For windows due to missing the mixed format like 0::0000:FFFF:127.0.0.1
|
||||
--source include/windows.inc
|
||||
# Can't be tested with embedded server
|
||||
--source include/not_embedded.inc
|
||||
|
||||
# Save the initial number of concurrent sessions
|
||||
--source include/count_sessions.inc
|
||||
|
||||
echo =============Test of '::1' ========================================;
|
||||
let $IPv6= ::1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '::1/128' ====================================;
|
||||
let $IPv6= ::1/128;
|
||||
#--source include/ipv6_clients.inc
|
||||
#--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0000:0000:0000:0000:0000:0000:0000:0001' ====;
|
||||
let $IPv6= 0000:0000:0000:0000:0000:0000:0000:0001;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
echo =============Test of '0:0:0:0:0:0:0:1' ============================;
|
||||
let $IPv6= 0:0:0:0:0:0:0:1;
|
||||
--source include/ipv6_clients.inc
|
||||
--source include/ipv6.inc
|
||||
|
||||
# Wait till all disconnects are completed
|
||||
--source include/wait_until_count_sessions.inc
|
@ -15,7 +15,7 @@ DROP USER mysqltest_1@'127.0.0.1/255.255.255.255';
|
||||
# Bug#13407 Remote connecting crashes server
|
||||
# Server crashed when one used USER() function in connection for which
|
||||
# was impossible to obtain peer hostname.
|
||||
connect (con1, 127.0.0.1, root, , test, $MASTER_MYPORT, );
|
||||
connect (con1, localhost, root, , test, $MASTER_MYPORT, );
|
||||
--replace_column 1 #
|
||||
SELECT USER();
|
||||
# We are only interested in the fact that statement below doesn't
|
||||
|
Reference in New Issue
Block a user