File: dd_schema_definition_after_upgrade_57_debug.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (65 lines) | stat: -rw-r--r-- 3,150 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

--echo ########################################################################
--echo #
--echo # This test will first verify the DD schema of the currently running
--echo # server, and dump the SHOW CREATE statements for the DD tables to
--echo # a file. Then, it will unzip a data dirctory from version 5.7,
--echo # estart the server to make it do upgrade, and verify that the DD tables
--echo # after upgrade are similar to those that are created when initializing
--echo # the target server.
--echo #
--echo # The zipped 5.7 data directory can be restored on any file system.
--echo # There is a corresponding test for upgrade after 8.0.
--echo #
--echo ########################################################################

--source include/have_debug.inc
--source include/not_valgrind.inc
--source include/mysql_upgrade_preparation.inc

--echo ########################################################################
--echo # Assert target schema ids.
--echo ########################################################################
--source include/dd_schema_assert_ids.inc

--echo ########################################################################
--echo # Assert target schema table names.
--echo ########################################################################
--source include/dd_schema_assert_and_fill_table_names.inc

--echo ########################################################################
--echo # Dump DD table definitions to file.
--echo ########################################################################
--let $target_table_defs = $MYSQL_TMP_DIR/target_definitions.txt
--let $file = $target_table_defs
--source include/dd_schema_dump_table_defs_debug.inc

--echo ########################################################################
--echo # Dump mysql.dd_properties to file.
--echo ########################################################################
--let $target_dd_props = $MYSQL_TMP_DIR/target_dd_properties.txt
--let $file = $target_dd_props
  # We must filter out unpredictable values such as root page no and ids.
  # This simple filter will remove a bit more than strictly necessary.
--let $filter = id|root|MYSQLD_VERSION_LO
--source include/dd_schema_dd_properties.inc

--echo ########################################################################
--echo # Stop the running server.
--echo ########################################################################
--let $shutdown_server_timeout= 300
--source include/shutdown_mysqld.inc

--echo ########################################################################
--let  $VERSION = 57022
--echo # Test upgrade from $VERSION.
--echo ########################################################################
--source include/dd_schema_definition_after_upgrade_debug.inc

--echo ########################################################################
--echo # Cleanup: Remove definition files and restart with default options.
--echo ########################################################################
--remove_file $target_table_defs
--remove_file $target_dd_props
let $restart_parameters =;
--source include/start_mysqld.inc