~vadim-tk/percona-server/percona-galera-5.1.57

« back to all changes in this revision

Viewing changes to mysql-test/t/mysqladmin.test

  • Committer: root
  • Date: 2011-07-10 16:09:24 UTC
  • Revision ID: root@r815.office.percona.com-20110710160924-fyffqsbaclgu6vui
Initial port

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Embedded server doesn't support external clients
 
2
--source include/not_embedded.inc
 
3
#
 
4
# Test "mysqladmin ping"
 
5
#
 
6
 
 
7
--exec $MYSQLADMIN --no-defaults -S $MASTER_MYSOCK -P $MASTER_MYPORT  -u root --password= ping 2>&1
 
8
 
 
9
 
 
10
#
 
11
# Bug#10608 mysqladmin breaks on "database" variable in my.cnf
 
12
#
 
13
 
 
14
# When mysqladmin finds database in .cnf file it shall fail
 
15
--write_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf
 
16
[client]
 
17
database=db1
 
18
EOF
 
19
 
 
20
--replace_regex /.*mysqladmin.*: unknown/mysqladmin: unknown/
 
21
--error 7
 
22
--exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf -S $MASTER_MYSOCK -P $MASTER_MYPORT  -u root --password= ping 2>&1
 
23
remove_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf;
 
24
 
 
25
# When mysqladmin finds "loose-database" in .cnf file it shall print
 
26
# a warning and continue
 
27
--write_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf
 
28
[client]
 
29
loose-database=db2
 
30
EOF
 
31
 
 
32
--replace_regex /Warning: .*mysqladmin.*: unknown/Warning: mysqladmin: unknown/
 
33
--exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf -S $MASTER_MYSOCK -P $MASTER_MYPORT  -u root --password= ping 2>&1
 
34
 
 
35
remove_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf;
 
36
 
 
37
--echo #
 
38
--echo # Bug#58221 : mysqladmin --sleep=x --count=x keeps looping
 
39
--echo #
 
40
 
 
41
--echo # Executing mysqladmin with --sleep=1 and --count=2.
 
42
--exec $MYSQLADMIN -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT --sleep=1 --count=2 ping > $MYSQLTEST_VARDIR/tmp/mysqladmin.tmp
 
43
--echo # Done.
 
44
--echo # Displaying the output :
 
45
--cat_file $MYSQLTEST_VARDIR/tmp/mysqladmin.tmp
 
46
 
 
47
--remove_file $MYSQLTEST_VARDIR/tmp/mysqladmin.tmp