Debian Codegraph @

mysql-test/suite/mariabackup/auth_plugin_win.test

raw
1 --source include/windows.inc
2 --source include/not_embedded.inc
3
4 if (!$AUTH_NAMED_PIPE_SO) {
5 skip No named pipe plugin;
6 }
7
8 if (!$USERNAME) {
9 skip USERNAME variable is undefined;
10 }
11
12 if (`SELECT count(*) <> 0 FROM mysql.user WHERE user = '$USERNAME'`) {
13 skip \$USER=$USER which exists in mysql.user;
14 }
15
16 INSTALL SONAME 'auth_named_pipe';
17
18 --replace_result $USERNAME USERNAME
19 eval CREATE USER '$USERNAME' IDENTIFIED WITH named_pipe;
20 --replace_result $USERNAME USERNAME
21 eval GRANT ALL PRIVILEGES ON *.* to '$USERNAME';
22
23 let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
24 --disable_result_log
25 exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf -u $USERNAME --backup --parallel=10 --protocol=pipe --target-dir=$targetdir;
26 --enable_result_log
27 --replace_result $USERNAME USERNAME
28 eval DROP USER '$USERNAME';
29 rmdir $targetdir;
30 UNINSTALL SONAME 'auth_named_pipe';
31