config root man

Current Path : /home/usr.opt/mysql57/mysql-test/include/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/include/have_mysqld_safe.inc

#################################################
# Checks if mysqld_safe is installed in the path
# specified by MTR. mysqld_safe is obsolete on
# platforms that use systemd to monitor mysqld.
#################################################

--disable_query_log
--let $temp_inc=$MYSQL_TMP_DIR/tmp.inc
let inc_tmp=$temp_inc;

--perl
use strict;
my $is_mysqld_safe_present=0;
$is_mysqld_safe_present=1 if -e $ENV{'MYSQLD_SAFE'};

my $temp_inc= $ENV{'inc_tmp'} or die "temp_inc not set";
open(FILE_INC, ">", "$temp_inc") or die("can't open file \"$temp_inc\": $!");
print FILE_INC '--let $is_found= '.$is_mysqld_safe_present;

EOF

--source $temp_inc

if (!$is_found)
{
--skip Tests using mysqld_safe skipped.
}

--remove_file $temp_inc
--enable_query_log

Man Man