diff options
author | monty@donna.mysql.fi <> | 2001-04-12 15:46:50 +0300 |
---|---|---|
committer | monty@donna.mysql.fi <> | 2001-04-12 15:46:50 +0300 |
commit | 714431e3a67b3e10ac11e5ca322862415bc47dc0 (patch) | |
tree | e7fe50fd38b02c013f7aadf6c69212c7a9188740 /mysql-test | |
parent | 95d908dd0b74cb992d62fcf94ad29a1b64b2b3d1 (diff) | |
download | mariadb-git-714431e3a67b3e10ac11e5ca322862415bc47dc0.tar.gz |
Added intern which functions to benchmarks
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index 5bb005b60de..1ee2786e2a2 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -20,6 +20,27 @@ TZ=GMT-3; export TZ # for UNIX_TIMESTAMP tests to work PATH=/bin:/usr/bin:/usr/local/bin:/usr/bsd:/usr/X11R6/bin +# Standard functions + +which () +{ + DIRS=`echo $PATH | tr ":" " "` + for file + do + for dir in $DIRS + do + if test -f $dir/$file + then + echo "$dir/$file" + continue 2 + fi + done + echo "which: no $file in ($PATH)" + exit 1 + done +} + + # No paths below as we can't be sure where the program is! BASENAME=`which basename | head -1` |