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 7exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --unknown-option=xxx --target-dir=$targetdir; 8--error 2 9exec $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] 14unknown-option=XXX 15EOF 16--error 7 17exec $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] 23unknown-option=XXX 24EOF 25--error 7 26exec $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] 32unknown-option=XXX 33EOF 34--error 7 35exec $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] 41innodb-flush-method=O_DIRECT 42 43[mariabackup] 44innodb-flush-method=blablabla 45EOF 46--error 13 47exec $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 51exec $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] 58user=bla 59password=bla 60EOF 61exec $XTRABACKUP --defaults-file=$custom_cnf --backup --target-dir=$targetdir; 62--remove_file $custom_cnf 63--rmdir $targetdir 64 65--echo # Check if --help presents 66exec $XTRABACKUP --help; 67exec $XTRABACKUP -?; 68--enable_result_log 69 70