| 1 |
--let $targetdir=$MYSQLTEST_VARDIR/tmp/backup |
| 2 |
--let $custom_cnf=$MYSQLTEST_VARDIR/tmp/custom_my.cnf |
| 3 |
|
| 4 |
--echo # Check for unknown options in command-line |
| 5 |
--disable_result_log |
| 6 |
--error 7 |
| 7 |
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --unknown-option=xxx --target-dir=$targetdir; |
| 8 |
--error 2 |
| 9 |
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --unknown-option --target-dir=$targetdir; |
| 10 |
|
| 11 |
--echo # Check for unknown options in "mariabackup" group |
| 12 |
--write_file $custom_cnf |
| 13 |
[mariabackup] |
| 14 |
unknown-option=XXX |
| 15 |
EOF |
| 16 |
--error 7 |
| 17 |
exec $XTRABACKUP --defaults-file=$custom_cnf --backup --target-dir=$targetdir; |
| 18 |
--remove_file $custom_cnf |
| 19 |
|
| 20 |
--echo # Check for unknown options in "xtrabackup" group |
| 21 |
--write_file $custom_cnf |
| 22 |
[xtrabackup] |
| 23 |
unknown-option=XXX |
| 24 |
EOF |
| 25 |
--error 7 |
| 26 |
exec $XTRABACKUP --defaults-file=$custom_cnf --backup --target-dir=$targetdir; |
| 27 |
--remove_file $custom_cnf |
| 28 |
|
| 29 |
--echo # Check for unknown options in "mariadb-backup" group |
| 30 |
--write_file $custom_cnf |
| 31 |
[mariadb-backup] |
| 32 |
unknown-option=XXX |
| 33 |
EOF |
| 34 |
--error 7 |
| 35 |
exec $XTRABACKUP --defaults-file=$custom_cnf --backup --target-dir=$targetdir; |
| 36 |
--remove_file $custom_cnf |
| 37 |
|
| 38 |
--echo # Check for options overwriting |
| 39 |
--write_file $custom_cnf |
| 40 |
[mariadbd] |
| 41 |
innodb-flush-method=O_DIRECT |
| 42 |
|
| 43 |
[mariabackup] |
| 44 |
innodb-flush-method=blablabla |
| 45 |
EOF |
| 46 |
--error 13 |
| 47 |
exec $XTRABACKUP --defaults-file=$custom_cnf --backup --target-dir=$targetdir; |
| 48 |
--remove_file $custom_cnf |
| 49 |
|
| 50 |
--echo # Check if uknown options that follow --mysqld-args are ingored |
| 51 |
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir --mysqld-args --unknown-option; |
| 52 |
--rmdir $targetdir |
| 53 |
|
| 54 |
--echo # Check if [mariadb-client] group is not loaded (MDEV-22894) |
| 55 |
--copy_file $MYSQLTEST_VARDIR/my.cnf $custom_cnf |
| 56 |
--append_file $custom_cnf |
| 57 |
[mariadb-client] |
| 58 |
user=bla |
| 59 |
password=bla |
| 60 |
EOF |
| 61 |
exec $XTRABACKUP --defaults-file=$custom_cnf --backup --target-dir=$targetdir; |
| 62 |
--remove_file $custom_cnf |
| 63 |
--rmdir $targetdir |
| 64 |
|
| 65 |
--echo # Check if --help presents |
| 66 |
exec $XTRABACKUP --help; |
| 67 |
exec $XTRABACKUP -?; |
| 68 |
--enable_result_log |
| 69 |
|
| 70 |
--echo # |
| 71 |
--echo # MDEV-39565 missing filename check in mariadb-backup --decompress |
| 72 |
--echo # |
| 73 |
--write_file "$MYSQL_TMP_DIR/a;touch b.qp" |
| 74 |
foo |
| 75 |
EOF |
| 76 |
|
| 77 |
--replace_regex /.*based.*\n// /\d/#/ /[\\]/\// |
| 78 |
--error 1 |
| 79 |
exec $XTRABACKUP --decompress --target-dir=$MYSQL_TMP_DIR 2>&1; |
| 80 |
--list_files $MYSQL_TMP_DIR b.qp |
| 81 |
|
| 82 |
--echo # End of 10.6 tests |