~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
#
2
# Test "mysqladmin ping"
3
#
4
5
--exec $MYSQLADMIN --no-defaults -S $MASTER_MYSOCK -P $MASTER_MYPORT  -u root --password= ping 2>&1
6
7
8
#
9
# Bug#10608 mysqladmin breaks on "database" variable in my.cnf
10
#
11
12
# When mysqladmin finds database in .cnf file it shall fail
13
--write_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf
14
[client]
15
database=db1
16
EOF
17
18
--replace_regex /.*mysqladmin.*: unknown/mysqladmin: unknown/
19
--error 7
20
--exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf -S $MASTER_MYSOCK -P $MASTER_MYPORT  -u root --password= ping 2>&1
21
remove_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf;
22
23
# When mysqladmin finds "loose-database" in .cnf file it shall print
24
# a warning and continue
25
--write_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf
26
[client]
27
loose-database=db2
28
EOF
29
30
--replace_regex /Warning: .*mysqladmin.*: unknown/Warning: mysqladmin: unknown/
31
--exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf -S $MASTER_MYSOCK -P $MASTER_MYPORT  -u root --password= ping 2>&1
32
33
remove_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf;