Debian Codegraph @

mysql-test/suite/mariabackup/compat_xtrabackup.test

raw
1 call mtr.add_suppression("InnoDB: New log files created");
2
3 --echo #
4 --echo # Start of 10.11 tests
5 --echo #
6
7 --echo #
8 --echo # MDEV-18931 Rename Mariabackup's xtrabackup_* files to mariadb_backup_*
9 --echo #
10
11 --let $basedir=$MYSQLTEST_VARDIR/tmp/backup
12 --let $incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1
13
14 CREATE TABLE t1(i INT PRIMARY KEY) ENGINE MYISAM;
15 INSERT INTO t1 VALUES (1);
16
17 --disable_result_log
18 --exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$basedir
19 --enable_result_log
20
21 --exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$incremental_dir --incremental-basedir=$basedir
22
23 #
24 # Emulate a backup created by an older version:
25 # Rename mariadb_backup_checkpoints
26 #
27
28 --move_file $basedir/mariadb_backup_checkpoints $basedir/xtrabackup_checkpoints
29 --move_file $incremental_dir/mariadb_backup_checkpoints $incremental_dir/xtrabackup_checkpoints
30
31 #
32 # Emulate a backup created by an older version:
33 # Rename mariadb_backup_info
34 # Note, mariadb_backup_info is not currently used during --prepare or --restore
35 # But it's still good to rename it:
36 # - we can start using it during --prepare or --restore
37 # - to provide full emulation
38 #
39
40 --move_file $basedir/mariadb_backup_info $basedir/mariadb_backup_info
41 --move_file $incremental_dir/mariadb_backup_info $incremental_dir/mariadb_backup_info
42
43
44 --disable_result_log
45 --echo # Prepare full backup, apply incremental one
46 --exec $XTRABACKUP --prepare --target-dir=$basedir
47 --exec $XTRABACKUP --prepare --target-dir=$basedir --incremental-dir=$incremental_dir
48 --enable_result_log
49
50 --let $targetdir=$basedir
51 --source include/restart_and_restore.inc
52 --enable_result_log
53
54 SELECT * FROM test.t1;
55
56 DROP TABLE t1;
57 --rmdir $basedir
58 --rmdir $incremental_dir
59
60 --echo #
61 --echo # End of 10.11 tests
62 --echo #