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
bbf0c9d4
Commit
bbf0c9d4
authored
Mar 16, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: pfs_upgrade* tests
parent
386ef087
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
4 additions
and
75 deletions
+4
-75
mysql-test/suite/perfschema/include/upgrade_check.inc
mysql-test/suite/perfschema/include/upgrade_check.inc
+4
-6
mysql-test/suite/perfschema/r/pfs_upgrade_event.result
mysql-test/suite/perfschema/r/pfs_upgrade_event.result
+0
-1
mysql-test/suite/perfschema/r/pfs_upgrade_func.result
mysql-test/suite/perfschema/r/pfs_upgrade_func.result
+0
-1
mysql-test/suite/perfschema/r/pfs_upgrade_proc.result
mysql-test/suite/perfschema/r/pfs_upgrade_proc.result
+0
-1
mysql-test/suite/perfschema/r/pfs_upgrade_table.result
mysql-test/suite/perfschema/r/pfs_upgrade_table.result
+0
-1
mysql-test/suite/perfschema/r/pfs_upgrade_view.result
mysql-test/suite/perfschema/r/pfs_upgrade_view.result
+0
-1
mysql-test/suite/perfschema/t/pfs_upgrade_event.test
mysql-test/suite/perfschema/t/pfs_upgrade_event.test
+0
-12
mysql-test/suite/perfschema/t/pfs_upgrade_func.test
mysql-test/suite/perfschema/t/pfs_upgrade_func.test
+0
-12
mysql-test/suite/perfschema/t/pfs_upgrade_proc.test
mysql-test/suite/perfschema/t/pfs_upgrade_proc.test
+0
-12
mysql-test/suite/perfschema/t/pfs_upgrade_table.test
mysql-test/suite/perfschema/t/pfs_upgrade_table.test
+0
-14
mysql-test/suite/perfschema/t/pfs_upgrade_view.test
mysql-test/suite/perfschema/t/pfs_upgrade_view.test
+0
-14
No files found.
mysql-test/suite/perfschema/include/upgrade_check.inc
View file @
bbf0c9d4
...
@@ -3,16 +3,14 @@
...
@@ -3,16 +3,14 @@
#
#
--
source
include
/
count_sessions
.
inc
--
source
include
/
count_sessions
.
inc
--
exec
$MYSQL_UPGRADE
--
skip
-
verbose
--
force
>
$
out_file
2
>
$
err_file
--
exec
$MYSQL_UPGRADE
--
skip
-
verbose
--
force
>
$
MYSQLTEST_VARDIR
/
tmp
/
out_file
2
>
$MYSQLTEST_VARDIR
/
tmp
/
err_file
--
source
include
/
wait_until_count_sessions
.
inc
--
source
include
/
wait_until_count_sessions
.
inc
# Verify that mysql_upgrade does not complain about the performance_schema
# Verify that mysql_upgrade does not complain about the performance_schema
--
replace_regex
/
at
line
[
0
-
9
]
+/
at
line
###/
--
replace_regex
/
at
line
[
0
-
9
]
+/
at
line
###/
--
cat_file
$err_file
--
cat_file
$MYSQLTEST_VARDIR
/
tmp
/
err_file
--
error
0
,
1
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
out_file
--
remove_file
$out_file
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
err_file
--
error
0
,
1
--
remove_file
$err_file
--
remove_file
$MYSQLD_DATADIR
/
mysql_upgrade_info
--
remove_file
$MYSQLD_DATADIR
/
mysql_upgrade_info
mysql-test/suite/perfschema/r/pfs_upgrade_event.result
View file @
bbf0c9d4
drop event if exists test.user_event;
"Testing mysql_upgrade with EVENT performance_schema.user_event"
"Testing mysql_upgrade with EVENT performance_schema.user_event"
create event test.user_event on schedule every 1 day do
create event test.user_event on schedule every 1 day do
select "not supposed to be here";
select "not supposed to be here";
...
...
mysql-test/suite/perfschema/r/pfs_upgrade_func.result
View file @
bbf0c9d4
drop function if exists test.user_func;
"Testing mysql_upgrade with FUNCTION performance_schema.user_func"
"Testing mysql_upgrade with FUNCTION performance_schema.user_func"
create function test.user_func() returns integer
create function test.user_func() returns integer
return 0;
return 0;
...
...
mysql-test/suite/perfschema/r/pfs_upgrade_proc.result
View file @
bbf0c9d4
drop procedure if exists test.user_proc;
"Testing mysql_upgrade with PROCEDURE performance_schema.user_proc"
"Testing mysql_upgrade with PROCEDURE performance_schema.user_proc"
create procedure test.user_proc()
create procedure test.user_proc()
select "Not supposed to be here";
select "Not supposed to be here";
...
...
mysql-test/suite/perfschema/r/pfs_upgrade_table.result
View file @
bbf0c9d4
drop table if exists test.user_table;
"Testing mysql_upgrade with TABLE performance_schema.user_table"
"Testing mysql_upgrade with TABLE performance_schema.user_table"
create table test.user_table(a int);
create table test.user_table(a int);
use performance_schema;
use performance_schema;
...
...
mysql-test/suite/perfschema/r/pfs_upgrade_view.result
View file @
bbf0c9d4
drop view if exists test.user_view;
"Testing mysql_upgrade with VIEW performance_schema.user_view"
"Testing mysql_upgrade with VIEW performance_schema.user_view"
create view test.user_view as select "Not supposed to be here";
create view test.user_view as select "Not supposed to be here";
use performance_schema;
use performance_schema;
...
...
mysql-test/suite/perfschema/t/pfs_upgrade_event.test
View file @
bbf0c9d4
...
@@ -7,18 +7,7 @@
...
@@ -7,18 +7,7 @@
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
# Some initial settings + Preemptive cleanup
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$err_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_event
.
err
;
let
$out_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_event
.
out
;
--
error
0
,
1
--
remove_file
$out_file
--
error
0
,
1
--
remove_file
$err_file
--
disable_warnings
drop
event
if
exists
test
.
user_event
;
--
enable_warnings
--
echo
"Testing mysql_upgrade with EVENT performance_schema.user_event"
--
echo
"Testing mysql_upgrade with EVENT performance_schema.user_event"
...
@@ -33,4 +22,3 @@ select name from mysql.event where db='performance_schema';
...
@@ -33,4 +22,3 @@ select name from mysql.event where db='performance_schema';
update
mysql
.
event
set
db
=
'test'
where
name
=
'user_event'
;
update
mysql
.
event
set
db
=
'test'
where
name
=
'user_event'
;
drop
event
test
.
user_event
;
drop
event
test
.
user_event
;
mysql-test/suite/perfschema/t/pfs_upgrade_func.test
View file @
bbf0c9d4
...
@@ -7,18 +7,7 @@
...
@@ -7,18 +7,7 @@
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
# Some initial settings + Preemptive cleanup
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$err_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_func
.
err
;
let
$out_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_func
.
out
;
--
error
0
,
1
--
remove_file
$out_file
--
error
0
,
1
--
remove_file
$err_file
--
disable_warnings
drop
function
if
exists
test
.
user_func
;
--
enable_warnings
--
echo
"Testing mysql_upgrade with FUNCTION performance_schema.user_func"
--
echo
"Testing mysql_upgrade with FUNCTION performance_schema.user_func"
...
@@ -33,4 +22,3 @@ select name from mysql.proc where db='performance_schema';
...
@@ -33,4 +22,3 @@ select name from mysql.proc where db='performance_schema';
update
mysql
.
proc
set
db
=
'test'
where
name
=
'user_func'
;
update
mysql
.
proc
set
db
=
'test'
where
name
=
'user_func'
;
drop
function
test
.
user_func
;
drop
function
test
.
user_func
;
mysql-test/suite/perfschema/t/pfs_upgrade_proc.test
View file @
bbf0c9d4
...
@@ -7,18 +7,7 @@
...
@@ -7,18 +7,7 @@
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
# Some initial settings + Preemptive cleanup
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$err_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_proc
.
err
;
let
$out_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_proc
.
out
;
--
error
0
,
1
--
remove_file
$out_file
--
error
0
,
1
--
remove_file
$err_file
--
disable_warnings
drop
procedure
if
exists
test
.
user_proc
;
--
enable_warnings
--
echo
"Testing mysql_upgrade with PROCEDURE performance_schema.user_proc"
--
echo
"Testing mysql_upgrade with PROCEDURE performance_schema.user_proc"
...
@@ -33,4 +22,3 @@ select name from mysql.proc where db='performance_schema';
...
@@ -33,4 +22,3 @@ select name from mysql.proc where db='performance_schema';
update
mysql
.
proc
set
db
=
'test'
where
name
=
'user_proc'
;
update
mysql
.
proc
set
db
=
'test'
where
name
=
'user_proc'
;
drop
procedure
test
.
user_proc
;
drop
procedure
test
.
user_proc
;
mysql-test/suite/perfschema/t/pfs_upgrade_table.test
View file @
bbf0c9d4
...
@@ -7,25 +7,12 @@
...
@@ -7,25 +7,12 @@
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
# Some initial settings + Preemptive cleanup
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$err_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_table
.
err
;
let
$out_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_table
.
out
;
--
error
0
,
1
--
remove_file
$out_file
--
error
0
,
1
--
remove_file
$err_file
--
disable_warnings
drop
table
if
exists
test
.
user_table
;
--
enable_warnings
--
echo
"Testing mysql_upgrade with TABLE performance_schema.user_table"
--
echo
"Testing mysql_upgrade with TABLE performance_schema.user_table"
create
table
test
.
user_table
(
a
int
);
create
table
test
.
user_table
(
a
int
);
--
error
0
,
1
--
remove_file
$MYSQLD_DATADIR
/
performance_schema
/
user_table
.
frm
--
copy_file
$MYSQLD_DATADIR
/
test
/
user_table
.
frm
$MYSQLD_DATADIR
/
performance_schema
/
user_table
.
frm
--
copy_file
$MYSQLD_DATADIR
/
test
/
user_table
.
frm
$MYSQLD_DATADIR
/
performance_schema
/
user_table
.
frm
# Make sure the table is visible
# Make sure the table is visible
...
@@ -41,4 +28,3 @@ use test;
...
@@ -41,4 +28,3 @@ use test;
--
remove_file
$MYSQLD_DATADIR
/
performance_schema
/
user_table
.
frm
--
remove_file
$MYSQLD_DATADIR
/
performance_schema
/
user_table
.
frm
drop
table
test
.
user_table
;
drop
table
test
.
user_table
;
mysql-test/suite/perfschema/t/pfs_upgrade_view.test
View file @
bbf0c9d4
...
@@ -7,25 +7,12 @@
...
@@ -7,25 +7,12 @@
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_perfschema
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
# Some initial settings + Preemptive cleanup
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
let
$err_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_view
.
err
;
let
$out_file
=
$MYSQLTEST_VARDIR
/
tmp
/
pfs_upgrade_view
.
out
;
--
error
0
,
1
--
remove_file
$out_file
--
error
0
,
1
--
remove_file
$err_file
--
disable_warnings
drop
view
if
exists
test
.
user_view
;
--
enable_warnings
--
echo
"Testing mysql_upgrade with VIEW performance_schema.user_view"
--
echo
"Testing mysql_upgrade with VIEW performance_schema.user_view"
create
view
test
.
user_view
as
select
"Not supposed to be here"
;
create
view
test
.
user_view
as
select
"Not supposed to be here"
;
--
error
0
,
1
--
remove_file
$MYSQLD_DATADIR
/
performance_schema
/
user_view
.
frm
--
copy_file
$MYSQLD_DATADIR
/
test
/
user_view
.
frm
$MYSQLD_DATADIR
/
performance_schema
/
user_view
.
frm
--
copy_file
$MYSQLD_DATADIR
/
test
/
user_view
.
frm
$MYSQLD_DATADIR
/
performance_schema
/
user_view
.
frm
# Make sure the view is visible
# Make sure the view is visible
...
@@ -41,4 +28,3 @@ use test;
...
@@ -41,4 +28,3 @@ use test;
--
remove_file
$MYSQLD_DATADIR
/
performance_schema
/
user_view
.
frm
--
remove_file
$MYSQLD_DATADIR
/
performance_schema
/
user_view
.
frm
drop
view
test
.
user_view
;
drop
view
test
.
user_view
;
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