summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/perfschema/include/upgrade_check.inc
blob: c16e90c78c28d396d4811a5ecc1e48eb65d34b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Routine to be called by pfs_upgrade.test
# $out_file and $err_file must be set within pfs_upgrade.test.
#

--source include/count_sessions.inc
--exec $MYSQL_UPGRADE --skip-verbose --force > $MYSQLTEST_VARDIR/tmp/out_file 2> $MYSQLTEST_VARDIR/tmp/err_file
--source include/wait_until_count_sessions.inc

# Verify that mysql_upgrade does not complain about the performance_schema

--replace_regex /at line [0-9]+/at line ###/
--cat_file $MYSQLTEST_VARDIR/tmp/err_file
--remove_file $MYSQLTEST_VARDIR/tmp/out_file
--remove_file $MYSQLTEST_VARDIR/tmp/err_file
--remove_file $MYSQLD_DATADIR/mysql_upgrade_info