~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/drizzleadmin.test

  • Committer: Monty Taylor
  • Date: 2009-03-16 16:56:48 UTC
  • mto: This revision was merged to the branch mainline in revision 938.
  • Revision ID: mordred@inaugust.com-20090316165648-0dsce73jne0qikk0
Addd -Wshadow to PROTOSKIP warnings and turned -Wstrict-aliasing off. Jumped the gun...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Test "mysqladmin ping"
 
3
#
 
4
 
 
5
--exec $MYSQLADMIN --port=$MASTER_MYPORT  --user=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 /.*drizzleadmin.*: unknown/drizzleadmin: unknown/
 
19
--error 7
 
20
--exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf --port=$MASTER_MYPORT  --user=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: .*drizzleadmin.*: unknown/Warning: drizzleadmin: unknown/
 
31
--exec $MYSQLADMIN --defaults-file=$MYSQLTEST_VARDIR/tmp/bug10608.cnf --port=$MASTER_MYPORT  --user=root --password= ping 2>&1
 
32
 
 
33
remove_file $MYSQLTEST_VARDIR/tmp/bug10608.cnf;