Commit 7268d075 authored by unknown's avatar unknown

mysql-test-run BSD cleanups


mysql-test/mysql-test-run:
  BSD cleanups
parent c808f323
...@@ -56,11 +56,11 @@ MYERR="$CWD/var/log/mysqld.err" ...@@ -56,11 +56,11 @@ MYERR="$CWD/var/log/mysqld.err"
#++ #++
# Program Definitions # Program Definitions
#-- #--
BASENAME=/bin/basename BASENAME=`which basename`
CAT=/bin/cat CAT=/bin/cat
CUT=/usr/bin/cut CUT=/usr/bin/cut
ECHO=/bin/echo ECHO=/bin/echo
EXPR=/usr/bin/expr EXPR=`which expr`
PRINTF=/usr/bin/printf PRINTF=/usr/bin/printf
RM=/bin/rm RM=/bin/rm
TIME=/usr/bin/time TIME=/usr/bin/time
...@@ -70,8 +70,7 @@ MYSQL_TEST="$BASEDIR/client/mysqltest" ...@@ -70,8 +70,7 @@ MYSQL_TEST="$BASEDIR/client/mysqltest"
MYSQLADMIN="$BASEDIR/client/mysqladmin" MYSQLADMIN="$BASEDIR/client/mysqladmin"
MYSQL_TEST="$MYSQL_TEST --socket=$MYSOCK --database=$DB --user=$DBUSER --password=$DBPASSWD --silent" MYSQL_TEST="$MYSQL_TEST --socket=$MYSOCK --database=$DB --user=$DBUSER --password=$DBPASSWD --silent"
INSTALL_DB="$MYBIN/mysql-test_install_db" INSTALL_DB="$MYBIN/mysql-test_install_db"
[ $1 = "-gcov" ] && DO_GCOV=1 [ "$1" = "-gcov" ] && DO_GCOV=1
#++ #++
# Terminal Modifications # Terminal Modifications
#-- #--
...@@ -81,8 +80,6 @@ SETCOLOR_FAILURE="$ECHO -n " ...@@ -81,8 +80,6 @@ SETCOLOR_FAILURE="$ECHO -n "
SETCOLOR_WARNING="$ECHO -n " SETCOLOR_WARNING="$ECHO -n "
SETCOLOR_NORMAL="$ECHO -n " SETCOLOR_NORMAL="$ECHO -n "
#++ #++
# Function Definitions # Function Definitions
#-- #--
...@@ -233,7 +230,9 @@ mysql_loadstd () { ...@@ -233,7 +230,9 @@ mysql_loadstd () {
return 1 return 1
} }
[ $DO_GCOV = 1 ] && gcov_clean # clean up stale gcov files if running with gcov [ "$DO_GCOV" -a ! -x "$GCOV" ] && error "No gcov found"
[ "$DO_GCOV" ] && gcov_clean # clean up stale gcov files if running with gcov
mysql_install_db mysql_install_db
...@@ -315,6 +314,6 @@ $ECHO ...@@ -315,6 +314,6 @@ $ECHO
report_stats report_stats
$ECHO $ECHO
[ $DO_GCOV = 1 ] && gcov_collect # collect coverage information [ "$DO_GCOV" ] && gcov_collect # collect coverage information
exit 0 exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment