1--source include/have_innodb.inc
2--source include/have_debug.inc
3
4--echo # Create 2 UNDO TABLESPACE(UNDO003, UNDO004)
5
6let $basedir=$MYSQLTEST_VARDIR/tmp/backup;
7
8CREATE TABLE t1(a varchar(60)) ENGINE INNODB;
9start transaction;
10INSERT INTO t1 VALUES(1);
11
12--echo # xtrabackup backup
13--disable_result_log
14exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf  --backup --target-dir=$basedir;
15--enable_result_log
16--echo # Display undo log files from target directory
17list_files $basedir undo*;
18
19--echo # xtrabackup prepare
20exec $XTRABACKUP --prepare --target-dir=$basedir;
21--echo # Display undo log files from targer directory
22list_files $basedir undo*;
23
24DROP TABLE t1;
25rmdir $basedir;
26