diff options
Diffstat (limited to 'mysql-test/suite/perfschema/include/upgrade_check.inc')
-rw-r--r-- | mysql-test/suite/perfschema/include/upgrade_check.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/suite/perfschema/include/upgrade_check.inc b/mysql-test/suite/perfschema/include/upgrade_check.inc new file mode 100644 index 00000000..c16e90c7 --- /dev/null +++ b/mysql-test/suite/perfschema/include/upgrade_check.inc @@ -0,0 +1,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 |