Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f0c44a5c
Commit
f0c44a5c
authored
Sep 28, 2004
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-test-run.sh:
Make timer an option
parent
43d3516c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+11
-3
No files found.
mysql-test/mysql-test-run.sh
View file @
f0c44a5c
...
...
@@ -233,6 +233,7 @@ DBUSER=""
START_WAIT_TIMEOUT
=
10
STOP_WAIT_TIMEOUT
=
10
MYSQL_TEST_SSL_OPTS
=
""
USE_TIMER
=
""
USE_EMBEDDED_SERVER
=
""
RESULT_EXT
=
""
...
...
@@ -242,6 +243,7 @@ while test $# -gt 0; do
USE_RUNNING_SERVER
=
""
RESULT_EXT
=
".es"
;;
--user
=
*
)
DBUSER
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--user=;;"
`
;;
--force
)
FORCE
=
1
;;
--timer
)
USE_TIMER
=
1
;;
--verbose-manager
)
MANAGER_QUIET_OPT
=
""
;;
--old-master
)
MASTER_40_ARGS
=
""
;;
--master-binary
=
*
)
...
...
@@ -584,8 +586,10 @@ export MYSQL MYSQL_DUMP MYSQL_BINLOG MYSQL_FIX_SYSTEM_TABLES CLIENT_BINDIR
MYSQL_TEST_ARGS
=
"--no-defaults --socket=
$MASTER_MYSOCK
--database=
$DB
\
--user=
$DBUSER
--password=
$DBPASSWD
--silent -v --skip-safemalloc
\
--tmpdir=
$MYSQL_TMP_DIR
--port=
$MASTER_MYPORT
--timer-file=
$MY_LOG_DIR
/timer
\
$MYSQL_TEST_SSL_OPTS
"
--tmpdir=
$MYSQL_TMP_DIR
--port=
$MASTER_MYPORT
$MYSQL_TEST_SSL_OPTS
"
if
[
x
$USE_TIMER
=
x1
]
;
then
MYSQL_TEST_ARGS
=
"
$MYSQL_TEST_ARGS
--timer-file=
$MY_LOG_DIR
/timer"
fi
MYSQL_TEST_BIN
=
$MYSQL_TEST
MYSQL_TEST
=
"
$MYSQL_TEST
$MYSQL_TEST_ARGS
"
GDB_CLIENT_INIT
=
$MYSQL_TMP_DIR
/gdbinit.client
...
...
@@ -1444,7 +1448,7 @@ run_testcase ()
total_inc
pass_inc
TIMER
=
""
if
[
-f
"
$MY_LOG_DIR
/timer"
]
;
then
if
[
x
$USE_TIMER
=
x1
-a
-f
"
$MY_LOG_DIR
/timer"
]
;
then
TIMER
=
`
cat
$MY_LOG_DIR
/timer
`
TIMER
=
`
$PRINTF
"%13s"
$TIMER
`
fi
...
...
@@ -1623,7 +1627,11 @@ then
fi
$ECHO
if
[
x
$USE_TIMER
=
x1
]
;
then
$ECHO
"TEST RESULT TIME (ms)"
else
$ECHO
"TEST RESULT"
fi
$ECHO
$DASH72
if
[
-z
"
$1
"
]
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment