#At file:///home/saikumar/work/opt-test/mysql-5.5-itch/ based on revid:mysql-re_ww@stripped
3483 Saikumar V 2011-08-02
Changes to test mysql_plugin with the new options --mysqld and ----my_print_defaults, and negative tests for the new options - latest update.
modified:
mysql-test/t/mysql_plugin.test
=== modified file 'mysql-test/t/mysql_plugin.test'
--- a/mysql-test/t/mysql_plugin.test 2011-08-01 14:43:54 +0000
+++ b/mysql-test/t/mysql_plugin.test 2011-08-02 15:19:52 +0000
@@ -7,29 +7,35 @@
# Add the datadir, basedir, plugin_dir to the bootstrap command
let $MYSQLD_DATADIR= `select @@datadir`;
let $MYSQL_BASEDIR= `select @@basedir`;
+let $MYSQL_ERRMSG_BASEDIR=`select @@lc_messages_dir`;
--disable_abort_on_error
# The mysql_plugin tool now accepts --mysqld the path to mysqld server,
# the mysqld path is extracted from MYSQLD_BOOTSTRAP_CMD line.
+# We also extract the path of MYSQLD_BASEDIR (where mysql exists) and use it for the errmsg file.
# The directories differ between Windows and Unix but the below perl script
-# will pick as per platform the mysqld path.
+# will pick as per platform.
+
perl;
+use File::Basename;
my ($mysqld)= split " ", $ENV{MYSQLD_BOOTSTRAP_CMD};
+ my $mysqld_basedir=dirname($mysqld);
open(FILE, ">", "$ENV{MYSQL_TMP_DIR}/mysqld.inc") or die;
print FILE "let \$MYSQLD= $mysqld;\n";
+ print FILE "let \$MYSQLD_BASEDIR= $mysqld_basedir;\n";
close FILE;
EOF
+
source $MYSQL_TMP_DIR/mysqld.inc;
remove_file $MYSQL_TMP_DIR/mysqld.inc;
# The mysql_plugin tool expects a directory structure like in the installed mysql version, so errmsg.sys
# will be copied to "basedir/share", we create and remove this structure.
-let $MYSQLD_BASEDIR= $MYSQL_BASEDIR/bin;
--mkdir $MYSQLD_BASEDIR/share
---copy_file $MYSQL_BASEDIR/share/english/errmsg.sys $MYSQLD_BASEDIR/share/errmsg.sys
+--copy_file $MYSQL_ERRMSG_BASEDIR/english/errmsg.sys $MYSQLD_BASEDIR/share/errmsg.sys
# The mysql_plugin tool now accepts --my_print_defaults which points to the executable my_print_defaults.exe
# we can get this path from the variable $MYSQL_MY_PRINT_DEFAULTS.
Attachment: [text/bzr-bundle] bzr/saikumar.v@oracle.com-20110802151952-cut3ez28ekpvupfg.bundle
| Thread |
|---|
| • bzr commit into mysql-5.5 branch (saikumar.v:3483) | Saikumar V | 3 Aug |