From dd3af2257aa36cc6c7018e123641193d0fdaa722 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 25 Sep 2003 23:12:24 +0200 Subject: - Improved portability of the sql-bench Perl scripts by replacing the calls of external programs "uname" and "pwd" with Perl builtin functions "cwd()" and "POSIX::uname()" sql-bench/as3ap.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/bench-count-distinct.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/bench-init.pl.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. - portability fix: don't call external "uname" in various combinations, use POSIX::uname() instead. sql-bench/copy-db.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/crash-me.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. - portability fix: don't call external "uname" in various combinations, use POSIX::uname() instead. sql-bench/innotest1.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/innotest1a.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/innotest1b.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/innotest2.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/innotest2a.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/innotest2b.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/run-all-tests.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-ATIS.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-alter-table.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-big-tables.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-connect.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-create.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-insert.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-select.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-transactions.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. sql-bench/test-wisconsin.sh: - portability fix: don't call external "pwd" command, use the "cwd()" builtin function instead. --- sql-bench/test-create.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql-bench/test-create.sh') diff --git a/sql-bench/test-create.sh b/sql-bench/test-create.sh index 1e7d3841bb5..8188b47f587 100644 --- a/sql-bench/test-create.sh +++ b/sql-bench/test-create.sh @@ -30,13 +30,14 @@ ##################### Standard benchmark inits ############################## +use Cwd; use DBI; use Benchmark; $opt_loop_count=10000; # Change this to make test harder/easier # This is the default value for the amount of tables used in this test. -chomp($pwd = `pwd`); $pwd = "." if ($pwd eq ''); +$pwd = cwd(); $pwd = "." if ($pwd eq ''); require "$pwd/bench-init.pl" || die "Can't read Configuration file: $!\n"; $create_loop_count=$opt_loop_count; -- cgit v1.2.1