summaryrefslogtreecommitdiff
path: root/sql-bench/run-all-tests.sh
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.fi>2001-03-12 01:13:07 +0200
committerunknown <monty@donna.mysql.fi>2001-03-12 01:13:07 +0200
commitc6639098152b68b13aa77709e38c76515304381e (patch)
treee8f2ac6fd4e8357ee12ec7bfd8d30a6c93a1f1c5 /sql-bench/run-all-tests.sh
parent765c255873bdc2bad425a48aaf257f91da1fb3f3 (diff)
downloadmariadb-git-c6639098152b68b13aa77709e38c76515304381e.tar.gz
Fixes for compiling innobase
Docs/manual.texi: Added notes about 3.23.34a innobase/mem/Makefile.am: Add missing files innobase/pars/Makefile.am: fixed typo sql-bench/run-all-tests.sh: Fix for windows
Diffstat (limited to 'sql-bench/run-all-tests.sh')
-rw-r--r--sql-bench/run-all-tests.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/sql-bench/run-all-tests.sh b/sql-bench/run-all-tests.sh
index cbcafce3117..31d48c837df 100644
--- a/sql-bench/run-all-tests.sh
+++ b/sql-bench/run-all-tests.sh
@@ -36,11 +36,6 @@
use DBI;
$opt_silent=1; # Don't write header
-$prog_args="";
-foreach $arg (@ARGV)
-{
- $prog_args.="'" . $arg . "' ";
-}
chomp($pwd = `pwd`); $pwd = "." if ($pwd eq '');
require "$pwd/bench-init.pl" || die "Can't read Configuration file: $!\n";
@@ -50,6 +45,20 @@ $machine=machine();
$redirect= !($machine =~ /windows/i || $machine =~ "^NT\s") ? "2>&1" : "";
$dir= ($pwd =~ /\\/) ? '\\' : '/'; # directory symbol for shell
+$prog_args="";
+foreach $arg (@ARGV)
+{
+ if ($redirect)
+ {
+ $prog_args.="'" . $arg . "' ";
+ }
+ else
+ {
+ # Windows/NT can't handle ' around arguments
+ $prog_args.=$arg . " ";
+ }
+}
+
$prog_count=$errors=0;
if ($opt_cmp) {