From: Saikumar V Date: August 2 2011 1:38pm Subject: bzr commit into mysql-5.5 branch (saikumar.v:3485) List-Archive: http://lists.mysql.com/commits/140489 Message-Id: <201108021339.p72DdVDm010128@saikumar-laptop> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0975917794==" --===============0975917794== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline #At file:///home/saikumar/work/opt-test/mysql-5.5-wl-5710/ based on revid:saikumar.v@stripped 3485 Saikumar V 2011-08-02 Corrected error message file path to be dynamic than static. 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 09:50:59 +0000 +++ b/mysql-test/t/mysql_plugin.test 2011-08-02 13:38:26 +0000 @@ -7,28 +7,38 @@ # 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`; -# The mysql_plugin tool expects all executables in "basedir", so they will be copied to it. -# It also expects a directory structure like in the installed mysql version, so errmsg.sys -# will be copied to "basedir/share". --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. -# The directories differ between Windows and Unix. +# 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. + 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; -let $MYSQLD_BASEDIR= $MYSQL_BASEDIR/bin; +# The mysql_plugin tool expects a directory structure like in the installed mysql version, so errmsg.sys +# will be copied to "msqld_basedir/share", we create and remove this structure. + --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. let $MYSQLD_BOOTSTRAP_CMD= $MYSQL_PLUGIN --datadir=$MYSQLD_DATADIR --basedir=$MYSQL_BASEDIR --plugin-dir=$DAEMONEXAMPLE_DIR --mysqld=$MYSQLD --my_print_defaults=$MYSQL_MY_PRINT_DEFAULTS; @@ -239,6 +249,7 @@ EOF --error 0,1 --remove_file $expect_file +# Cleanup the share folder in the binary path. --remove_file $MYSQLD_BASEDIR/share/errmsg.sys --rmdir $MYSQLD_BASEDIR/share --===============0975917794== MIME-Version: 1.0 Content-Type: text/bzr-bundle; charset="us-ascii"; name="bzr/saikumar.v@stripped" Content-Transfer-Encoding: 7bit Content-Disposition: inline # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: saikumar.v@stripped # target_branch: file:///home/saikumar/work/opt-test/mysql-5.5-wl-\ # 5710/ # testament_sha1: e501ebe24f53e5422785db24ee568cc17223d97c # timestamp: 2011-08-02 19:08:31 +0530 # base_revision_id: saikumar.v@stripped\ # 373fx23l9czmuncr # # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWa7KglYAAhZfgAAQXGf//3+n /6T////wUAWMbG93QtWzkDms7aPCSRNNNJpMMJpimCAak09T1ANAemo2iPUCUhMNJk0nqNT0o0NG mgDQAaNNABoA00IQm0mk0yhhmlPU2oeoAG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