~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

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;