1--source include/have_innodb.inc 2--source include/have_log_bin.inc 3 4let $basedir=$MYSQLTEST_VARDIR/tmp/backup; 5 6CREATE TABLE t(a varchar(60)) ENGINE INNODB; 7INSERT INTO t VALUES(1); 8 9SHOW VARIABLES like 'log_bin'; 10 11--disable_result_log 12exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$basedir; 13--enable_result_log 14 15exec $XTRABACKUP --prepare --binlog-info=1 --target-dir=$basedir ; 16 17let SEARCH_FILE=$MYSQLTEST_VARDIR/log/current_test; 18--let SEARCH_PATTERN= Last binlog file .*, position .* 19--source include/search_pattern_in_file.inc 20--echo # expect FOUND 21 22DROP TABLE t; 23 24# Cleanup 25rmdir $basedir; 26