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
aedf7686
Commit
aedf7686
authored
May 22, 2013
by
Kentoku SHIBA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip test if target engine is not available
parent
20ac70c8
Changes
47
Hide whitespace changes
Inline
Side-by-side
Showing
47 changed files
with
908 additions
and
38 deletions
+908
-38
storage/spider/mysql-test/spider/bg/t/basic_sql.test
storage/spider/mysql-test/spider/bg/t/basic_sql.test
+23
-0
storage/spider/mysql-test/spider/bg/t/direct_aggregate.test
storage/spider/mysql-test/spider/bg/t/direct_aggregate.test
+23
-0
storage/spider/mysql-test/spider/bg/t/direct_update.test
storage/spider/mysql-test/spider/bg/t/direct_update.test
+23
-0
storage/spider/mysql-test/spider/bg/t/function.test
storage/spider/mysql-test/spider/bg/t/function.test
+23
-0
storage/spider/mysql-test/spider/bg/t/ha.test
storage/spider/mysql-test/spider/bg/t/ha.test
+35
-0
storage/spider/mysql-test/spider/bg/t/have_engine.inc
storage/spider/mysql-test/spider/bg/t/have_engine.inc
+1
-2
storage/spider/mysql-test/spider/bg/t/have_func.inc
storage/spider/mysql-test/spider/bg/t/have_func.inc
+1
-2
storage/spider/mysql-test/spider/bg/t/spider_fixes.test
storage/spider/mysql-test/spider/bg/t/spider_fixes.test
+29
-0
storage/spider/mysql-test/spider/bg/t/vp_fixes.test
storage/spider/mysql-test/spider/bg/t/vp_fixes.test
+23
-0
storage/spider/mysql-test/spider/handler/t/basic_sql.test
storage/spider/mysql-test/spider/handler/t/basic_sql.test
+23
-0
storage/spider/mysql-test/spider/handler/t/direct_aggregate.test
.../spider/mysql-test/spider/handler/t/direct_aggregate.test
+23
-0
storage/spider/mysql-test/spider/handler/t/direct_update.test
...age/spider/mysql-test/spider/handler/t/direct_update.test
+23
-0
storage/spider/mysql-test/spider/handler/t/function.test
storage/spider/mysql-test/spider/handler/t/function.test
+23
-0
storage/spider/mysql-test/spider/handler/t/ha.test
storage/spider/mysql-test/spider/handler/t/ha.test
+35
-0
storage/spider/mysql-test/spider/handler/t/have_engine.inc
storage/spider/mysql-test/spider/handler/t/have_engine.inc
+1
-2
storage/spider/mysql-test/spider/handler/t/have_func.inc
storage/spider/mysql-test/spider/handler/t/have_func.inc
+1
-2
storage/spider/mysql-test/spider/handler/t/spider_fixes.test
storage/spider/mysql-test/spider/handler/t/spider_fixes.test
+29
-0
storage/spider/mysql-test/spider/handler/t/vp_fixes.test
storage/spider/mysql-test/spider/handler/t/vp_fixes.test
+23
-0
storage/spider/mysql-test/spider/include/deinit_engine.inc
storage/spider/mysql-test/spider/include/deinit_engine.inc
+1
-10
storage/spider/mysql-test/spider/include/init_engine.inc
storage/spider/mysql-test/spider/include/init_engine.inc
+2
-8
storage/spider/mysql-test/spider/oracle/t/basic_sql.test
storage/spider/mysql-test/spider/oracle/t/basic_sql.test
+23
-0
storage/spider/mysql-test/spider/oracle/t/direct_aggregate.test
...e/spider/mysql-test/spider/oracle/t/direct_aggregate.test
+23
-0
storage/spider/mysql-test/spider/oracle/t/direct_update.test
storage/spider/mysql-test/spider/oracle/t/direct_update.test
+23
-0
storage/spider/mysql-test/spider/oracle/t/function.test
storage/spider/mysql-test/spider/oracle/t/function.test
+23
-0
storage/spider/mysql-test/spider/oracle/t/ha.test
storage/spider/mysql-test/spider/oracle/t/ha.test
+35
-0
storage/spider/mysql-test/spider/oracle/t/have_engine.inc
storage/spider/mysql-test/spider/oracle/t/have_engine.inc
+1
-2
storage/spider/mysql-test/spider/oracle/t/have_func.inc
storage/spider/mysql-test/spider/oracle/t/have_func.inc
+1
-2
storage/spider/mysql-test/spider/oracle/t/spider_fixes.test
storage/spider/mysql-test/spider/oracle/t/spider_fixes.test
+29
-0
storage/spider/mysql-test/spider/oracle/t/vp_fixes.test
storage/spider/mysql-test/spider/oracle/t/vp_fixes.test
+23
-0
storage/spider/mysql-test/spider/oracle2/t/basic_sql.test
storage/spider/mysql-test/spider/oracle2/t/basic_sql.test
+23
-0
storage/spider/mysql-test/spider/oracle2/t/direct_aggregate.test
.../spider/mysql-test/spider/oracle2/t/direct_aggregate.test
+23
-0
storage/spider/mysql-test/spider/oracle2/t/direct_update.test
...age/spider/mysql-test/spider/oracle2/t/direct_update.test
+23
-0
storage/spider/mysql-test/spider/oracle2/t/function.test
storage/spider/mysql-test/spider/oracle2/t/function.test
+23
-0
storage/spider/mysql-test/spider/oracle2/t/ha.test
storage/spider/mysql-test/spider/oracle2/t/ha.test
+35
-0
storage/spider/mysql-test/spider/oracle2/t/have_engine.inc
storage/spider/mysql-test/spider/oracle2/t/have_engine.inc
+1
-2
storage/spider/mysql-test/spider/oracle2/t/have_func.inc
storage/spider/mysql-test/spider/oracle2/t/have_func.inc
+1
-2
storage/spider/mysql-test/spider/oracle2/t/spider_fixes.test
storage/spider/mysql-test/spider/oracle2/t/spider_fixes.test
+29
-0
storage/spider/mysql-test/spider/oracle2/t/vp_fixes.test
storage/spider/mysql-test/spider/oracle2/t/vp_fixes.test
+23
-0
storage/spider/mysql-test/spider/t/basic_sql.test
storage/spider/mysql-test/spider/t/basic_sql.test
+23
-0
storage/spider/mysql-test/spider/t/direct_aggregate.test
storage/spider/mysql-test/spider/t/direct_aggregate.test
+23
-0
storage/spider/mysql-test/spider/t/direct_update.test
storage/spider/mysql-test/spider/t/direct_update.test
+23
-0
storage/spider/mysql-test/spider/t/function.test
storage/spider/mysql-test/spider/t/function.test
+23
-0
storage/spider/mysql-test/spider/t/ha.test
storage/spider/mysql-test/spider/t/ha.test
+35
-0
storage/spider/mysql-test/spider/t/have_engine.inc
storage/spider/mysql-test/spider/t/have_engine.inc
+1
-2
storage/spider/mysql-test/spider/t/have_func.inc
storage/spider/mysql-test/spider/t/have_func.inc
+1
-2
storage/spider/mysql-test/spider/t/spider_fixes.test
storage/spider/mysql-test/spider/t/spider_fixes.test
+29
-0
storage/spider/mysql-test/spider/t/vp_fixes.test
storage/spider/mysql-test/spider/t/vp_fixes.test
+23
-0
No files found.
storage/spider/mysql-test/spider/bg/t/basic_sql.test
View file @
aedf7686
# This test tests by executing basic SQL
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/bg/t/direct_aggregate.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/bg/t/direct_update.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/bg/t/function.test
View file @
aedf7686
# This test tests for using functions
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/bg/t/ha.test
View file @
aedf7686
# This test tests for ha features
--
let
$SKIP_REASON
=
if
(
$USE_HA_TEST
)
{
--
disable_warnings
...
...
@@ -47,6 +48,40 @@ if ($USE_CHILD_GROUP3)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
--
connection
child2_3
DROP
DATABASE
IF
EXISTS
auto_test_remote3
;
}
if
(
$USE_CHILD_GROUP3
)
{
--
connection
child3_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_2
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_3
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
--
disable_query_log
--
disable_result_log
--
source
ha_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/bg/t/have_engine.inc
View file @
aedf7686
...
...
@@ -3,6 +3,5 @@ if (!`SELECT count(*) FROM information_schema.engines WHERE
engine = '$TEST_ENGINE_TYPE'`
)
{
SELECT
engine
,
support
FROM
information_schema
.
engines
;
--
echo
Need
$TEST_ENGINE_TYPE
engine
skip
Need
$TEST_ENGINE_TYPE
engine
;
--
let
$SKIP_REASON
=
"Need
$TEST_ENGINE_TYPE
engine"
}
storage/spider/mysql-test/spider/bg/t/have_func.inc
View file @
aedf7686
if
(
!
`SELECT count(*) FROM mysql.func WHERE name = '$TEST_FUNC_NAME'`
)
{
SELECT
name
FROM
mysql
.
func
;
--
echo
Need
$TEST_FUNC_NAME
function
skip
Need
$TEST_FUNC_NAME
function
;
--
let
$SKIP_REASON
=
"Need
$TEST_FUNC_NAME
function"
}
storage/spider/mysql-test/spider/bg/t/spider_fixes.test
View file @
aedf7686
# This test tests for Spider's bug fixes
--
let
$SKIP_REASON
=
source
include
/
have_log_bin
.
inc
;
--
disable_warnings
--
disable_query_log
...
...
@@ -34,6 +35,34 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_REPLICATION
)
{
--
connection
slave1_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
slave_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/bg/t/vp_fixes.test
View file @
aedf7686
# This test tests for VP's bug fixes
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/handler/t/basic_sql.test
View file @
aedf7686
# This test tests by executing basic SQL
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/handler/t/direct_aggregate.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/handler/t/direct_update.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/handler/t/function.test
View file @
aedf7686
# This test tests for using functions
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/handler/t/ha.test
View file @
aedf7686
# This test tests for ha features
--
let
$SKIP_REASON
=
if
(
$USE_HA_TEST
)
{
--
disable_warnings
...
...
@@ -47,6 +48,40 @@ if ($USE_CHILD_GROUP3)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
--
connection
child2_3
DROP
DATABASE
IF
EXISTS
auto_test_remote3
;
}
if
(
$USE_CHILD_GROUP3
)
{
--
connection
child3_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_2
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_3
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
--
disable_query_log
--
disable_result_log
--
source
ha_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/handler/t/have_engine.inc
View file @
aedf7686
...
...
@@ -3,6 +3,5 @@ if (!`SELECT count(*) FROM information_schema.engines WHERE
engine = '$TEST_ENGINE_TYPE'`
)
{
SELECT
engine
,
support
FROM
information_schema
.
engines
;
--
echo
Need
$TEST_ENGINE_TYPE
engine
skip
Need
$TEST_ENGINE_TYPE
engine
;
--
let
$SKIP_REASON
=
"Need
$TEST_ENGINE_TYPE
engine"
}
storage/spider/mysql-test/spider/handler/t/have_func.inc
View file @
aedf7686
if
(
!
`SELECT count(*) FROM mysql.func WHERE name = '$TEST_FUNC_NAME'`
)
{
SELECT
name
FROM
mysql
.
func
;
--
echo
Need
$TEST_FUNC_NAME
function
skip
Need
$TEST_FUNC_NAME
function
;
--
let
$SKIP_REASON
=
"Need
$TEST_FUNC_NAME
function"
}
storage/spider/mysql-test/spider/handler/t/spider_fixes.test
View file @
aedf7686
# This test tests for Spider's bug fixes
--
let
$SKIP_REASON
=
source
include
/
have_log_bin
.
inc
;
--
disable_warnings
--
disable_query_log
...
...
@@ -34,6 +35,34 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_REPLICATION
)
{
--
connection
slave1_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
slave_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/handler/t/vp_fixes.test
View file @
aedf7686
# This test tests for VP's bug fixes
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/include/deinit_engine.inc
View file @
aedf7686
if
(
$INIT_TEST_ENGINE
)
{
if
(
`SELECT IF('$TEST_ENGINE_TYPE' = 'InnoDB', 1, 0)`
)
{
--
source
../
include
/
deinit_innodb_plugin
.
inc
let
$INIT_TEST_ENGINE
=
0
;
}
if
(
$INIT_TEST_ENGINE
)
{
--
echo
Unknown
$TEST_ENGINE_TYPE
engine
for
deinit
skip
Unknown
$TEST_ENGINE_TYPE
engine
for
deinit
;
}
--
echo
Deinit
$TEST_ENGINE_TYPE
engine
}
storage/spider/mysql-test/spider/include/init_engine.inc
View file @
aedf7686
...
...
@@ -3,14 +3,8 @@ if (!`SELECT count(*) FROM information_schema.engines WHERE
(support = 'YES' OR support = 'DEFAULT') AND
engine = '$TEST_ENGINE_TYPE'`
)
{
if
(
`SELECT IF('$TEST_ENGINE_TYPE' = 'InnoDB', 1, 0)`
)
if
(
!
$SKIP_REASON
)
{
--
source
../
include
/
init_innodb_plugin
.
inc
let
$INIT_TEST_ENGINE
=
1
;
}
if
(
!
$INIT_TEST_ENGINE
)
{
--
echo
Unknown
$TEST_ENGINE_TYPE
engine
for
init
skip
Unknown
$TEST_ENGINE_TYPE
engine
for
init
;
--
let
$SKIP_REASON
=
"Need
$TEST_ENGINE_TYPE
engine"
}
}
storage/spider/mysql-test/spider/oracle/t/basic_sql.test
View file @
aedf7686
# This test tests by executing basic SQL
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle/t/direct_aggregate.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle/t/direct_update.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle/t/function.test
View file @
aedf7686
# This test tests for using functions
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle/t/ha.test
View file @
aedf7686
# This test tests for ha features
--
let
$SKIP_REASON
=
if
(
$USE_HA_TEST
)
{
--
disable_warnings
...
...
@@ -47,6 +48,40 @@ if ($USE_CHILD_GROUP3)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
--
connection
child2_3
DROP
DATABASE
IF
EXISTS
auto_test_remote3
;
}
if
(
$USE_CHILD_GROUP3
)
{
--
connection
child3_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_2
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_3
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
--
disable_query_log
--
disable_result_log
--
source
ha_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle/t/have_engine.inc
View file @
aedf7686
...
...
@@ -3,6 +3,5 @@ if (!`SELECT count(*) FROM information_schema.engines WHERE
engine = '$TEST_ENGINE_TYPE'`
)
{
SELECT
engine
,
support
FROM
information_schema
.
engines
;
--
echo
Need
$TEST_ENGINE_TYPE
engine
skip
Need
$TEST_ENGINE_TYPE
engine
;
--
let
$SKIP_REASON
=
"Need
$TEST_ENGINE_TYPE
engine"
}
storage/spider/mysql-test/spider/oracle/t/have_func.inc
View file @
aedf7686
if
(
!
`SELECT count(*) FROM mysql.func WHERE name = '$TEST_FUNC_NAME'`
)
{
SELECT
name
FROM
mysql
.
func
;
--
echo
Need
$TEST_FUNC_NAME
function
skip
Need
$TEST_FUNC_NAME
function
;
--
let
$SKIP_REASON
=
"Need
$TEST_FUNC_NAME
function"
}
storage/spider/mysql-test/spider/oracle/t/spider_fixes.test
View file @
aedf7686
# This test tests for Spider's bug fixes
--
let
$SKIP_REASON
=
source
include
/
have_log_bin
.
inc
;
--
disable_warnings
--
disable_query_log
...
...
@@ -34,6 +35,34 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_REPLICATION
)
{
--
connection
slave1_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
slave_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle/t/vp_fixes.test
View file @
aedf7686
# This test tests for VP's bug fixes
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle2/t/basic_sql.test
View file @
aedf7686
# This test tests by executing basic SQL
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle2/t/direct_aggregate.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle2/t/direct_update.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle2/t/function.test
View file @
aedf7686
# This test tests for using functions
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle2/t/ha.test
View file @
aedf7686
# This test tests for ha features
--
let
$SKIP_REASON
=
if
(
$USE_HA_TEST
)
{
--
disable_warnings
...
...
@@ -47,6 +48,40 @@ if ($USE_CHILD_GROUP3)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
--
connection
child2_3
DROP
DATABASE
IF
EXISTS
auto_test_remote3
;
}
if
(
$USE_CHILD_GROUP3
)
{
--
connection
child3_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_2
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_3
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
--
disable_query_log
--
disable_result_log
--
source
ha_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle2/t/have_engine.inc
View file @
aedf7686
...
...
@@ -3,6 +3,5 @@ if (!`SELECT count(*) FROM information_schema.engines WHERE
engine = '$TEST_ENGINE_TYPE'`
)
{
SELECT
engine
,
support
FROM
information_schema
.
engines
;
--
echo
Need
$TEST_ENGINE_TYPE
engine
skip
Need
$TEST_ENGINE_TYPE
engine
;
--
let
$SKIP_REASON
=
"Need
$TEST_ENGINE_TYPE
engine"
}
storage/spider/mysql-test/spider/oracle2/t/have_func.inc
View file @
aedf7686
if
(
!
`SELECT count(*) FROM mysql.func WHERE name = '$TEST_FUNC_NAME'`
)
{
SELECT
name
FROM
mysql
.
func
;
--
echo
Need
$TEST_FUNC_NAME
function
skip
Need
$TEST_FUNC_NAME
function
;
--
let
$SKIP_REASON
=
"Need
$TEST_FUNC_NAME
function"
}
storage/spider/mysql-test/spider/oracle2/t/spider_fixes.test
View file @
aedf7686
# This test tests for Spider's bug fixes
--
let
$SKIP_REASON
=
source
include
/
have_log_bin
.
inc
;
--
disable_warnings
--
disable_query_log
...
...
@@ -34,6 +35,34 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_REPLICATION
)
{
--
connection
slave1_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
slave_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/oracle2/t/vp_fixes.test
View file @
aedf7686
# This test tests for VP's bug fixes
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/t/basic_sql.test
View file @
aedf7686
# This test tests by executing basic SQL
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/t/direct_aggregate.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/t/direct_update.test
View file @
aedf7686
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -24,6 +25,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/t/function.test
View file @
aedf7686
# This test tests for using functions
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/t/ha.test
View file @
aedf7686
# This test tests for ha features
--
let
$SKIP_REASON
=
if
(
$USE_HA_TEST
)
{
--
disable_warnings
...
...
@@ -47,6 +48,40 @@ if ($USE_CHILD_GROUP3)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
--
connection
child2_3
DROP
DATABASE
IF
EXISTS
auto_test_remote3
;
}
if
(
$USE_CHILD_GROUP3
)
{
--
connection
child3_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_2
DROP
DATABASE
IF
EXISTS
auto_test_local
;
--
connection
child3_3
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
--
disable_query_log
--
disable_result_log
--
source
ha_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/t/have_engine.inc
View file @
aedf7686
...
...
@@ -3,6 +3,5 @@ if (!`SELECT count(*) FROM information_schema.engines WHERE
engine = '$TEST_ENGINE_TYPE'`
)
{
SELECT
engine
,
support
FROM
information_schema
.
engines
;
--
echo
Need
$TEST_ENGINE_TYPE
engine
skip
Need
$TEST_ENGINE_TYPE
engine
;
--
let
$SKIP_REASON
=
"Need
$TEST_ENGINE_TYPE
engine"
}
storage/spider/mysql-test/spider/t/have_func.inc
View file @
aedf7686
if
(
!
`SELECT count(*) FROM mysql.func WHERE name = '$TEST_FUNC_NAME'`
)
{
SELECT
name
FROM
mysql
.
func
;
--
echo
Need
$TEST_FUNC_NAME
function
skip
Need
$TEST_FUNC_NAME
function
;
--
let
$SKIP_REASON
=
"Need
$TEST_FUNC_NAME
function"
}
storage/spider/mysql-test/spider/t/spider_fixes.test
View file @
aedf7686
# This test tests for Spider's bug fixes
--
let
$SKIP_REASON
=
source
include
/
have_log_bin
.
inc
;
--
disable_warnings
--
disable_query_log
...
...
@@ -34,6 +35,34 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_REPLICATION
)
{
--
connection
slave1_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
}
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
slave_test_deinit
.
inc
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
storage/spider/mysql-test/spider/t/vp_fixes.test
View file @
aedf7686
# This test tests for VP's bug fixes
--
let
$SKIP_REASON
=
--
disable_warnings
--
disable_query_log
--
disable_result_log
...
...
@@ -25,6 +26,28 @@ if ($USE_CHILD_GROUP2)
}
--
enable_warnings
if
(
$SKIP_REASON
)
{
--
echo
deinit
--
disable_warnings
--
connection
master_1
DROP
DATABASE
IF
EXISTS
auto_test_local
;
if
(
$USE_CHILD_GROUP2
)
{
--
connection
child2_1
DROP
DATABASE
IF
EXISTS
auto_test_remote
;
--
connection
child2_2
DROP
DATABASE
IF
EXISTS
auto_test_remote2
;
}
--
disable_query_log
--
disable_result_log
--
source
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
--
enable_warnings
--
skip
$SKIP_REASON
}
--
echo
--
echo
test
select
1
--
connection
master_1
...
...
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