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
131c3f70
Commit
131c3f70
authored
Sep 28, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-test-run.sh:
Make timer an option mysql-test/mysql-test-run.sh: Make timer an option
parent
fa450407
Changes
1
Hide 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 @
131c3f70
...
@@ -233,6 +233,7 @@ DBUSER=""
...
@@ -233,6 +233,7 @@ DBUSER=""
START_WAIT_TIMEOUT
=
10
START_WAIT_TIMEOUT
=
10
STOP_WAIT_TIMEOUT
=
10
STOP_WAIT_TIMEOUT
=
10
MYSQL_TEST_SSL_OPTS
=
""
MYSQL_TEST_SSL_OPTS
=
""
USE_TIMER
=
""
USE_EMBEDDED_SERVER
=
""
USE_EMBEDDED_SERVER
=
""
RESULT_EXT
=
""
RESULT_EXT
=
""
...
@@ -242,6 +243,7 @@ while test $# -gt 0; do
...
@@ -242,6 +243,7 @@ while test $# -gt 0; do
USE_RUNNING_SERVER
=
""
RESULT_EXT
=
".es"
;;
USE_RUNNING_SERVER
=
""
RESULT_EXT
=
".es"
;;
--user
=
*
)
DBUSER
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--user=;;"
`
;;
--user
=
*
)
DBUSER
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--user=;;"
`
;;
--force
)
FORCE
=
1
;;
--force
)
FORCE
=
1
;;
--timer
)
USE_TIMER
=
1
;;
--verbose-manager
)
MANAGER_QUIET_OPT
=
""
;;
--verbose-manager
)
MANAGER_QUIET_OPT
=
""
;;
--old-master
)
MASTER_40_ARGS
=
""
;;
--old-master
)
MASTER_40_ARGS
=
""
;;
--master-binary
=
*
)
--master-binary
=
*
)
...
@@ -584,8 +586,10 @@ export MYSQL MYSQL_DUMP MYSQL_BINLOG MYSQL_FIX_SYSTEM_TABLES CLIENT_BINDIR
...
@@ -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
\
MYSQL_TEST_ARGS
=
"--no-defaults --socket=
$MASTER_MYSOCK
--database=
$DB
\
--user=
$DBUSER
--password=
$DBPASSWD
--silent -v --skip-safemalloc
\
--user=
$DBUSER
--password=
$DBPASSWD
--silent -v --skip-safemalloc
\
--tmpdir=
$MYSQL_TMP_DIR
--port=
$MASTER_MYPORT
--timer-file=
$MY_LOG_DIR
/timer
\
--tmpdir=
$MYSQL_TMP_DIR
--port=
$MASTER_MYPORT
$MYSQL_TEST_SSL_OPTS
"
$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_BIN
=
$MYSQL_TEST
MYSQL_TEST
=
"
$MYSQL_TEST
$MYSQL_TEST_ARGS
"
MYSQL_TEST
=
"
$MYSQL_TEST
$MYSQL_TEST_ARGS
"
GDB_CLIENT_INIT
=
$MYSQL_TMP_DIR
/gdbinit.client
GDB_CLIENT_INIT
=
$MYSQL_TMP_DIR
/gdbinit.client
...
@@ -1444,7 +1448,7 @@ run_testcase ()
...
@@ -1444,7 +1448,7 @@ run_testcase ()
total_inc
total_inc
pass_inc
pass_inc
TIMER
=
""
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
=
`
cat
$MY_LOG_DIR
/timer
`
TIMER
=
`
$PRINTF
"%13s"
$TIMER
`
TIMER
=
`
$PRINTF
"%13s"
$TIMER
`
fi
fi
...
@@ -1623,7 +1627,11 @@ then
...
@@ -1623,7 +1627,11 @@ then
fi
fi
$ECHO
$ECHO
if
[
x
$USE_TIMER
=
x1
]
;
then
$ECHO
"TEST RESULT TIME (ms)"
$ECHO
"TEST RESULT TIME (ms)"
else
$ECHO
"TEST RESULT"
fi
$ECHO
$DASH72
$ECHO
$DASH72
if
[
-z
"
$1
"
]
;
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