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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e6613c0e
Commit
e6613c0e
authored
Oct 13, 2000
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-test-run Code clean-ups.
mysql-test/mysql-test-run: Code clean-ups.
parent
590575f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
mysql-test/mysql-test-run
mysql-test/mysql-test-run
+20
-16
No files found.
mysql-test/mysql-test-run
View file @
e6613c0e
...
...
@@ -29,7 +29,6 @@ TIMEFILE="$CWD/var/tmp/mysqltest-time"
DASHBLANK
=
"---- ---- -------"
MYSQLD_SRC_DIRS
=
"strings mysys include extra regex isam merge myisam
\
myisammrg heap sql"
GCOV
=
`
which gcov
`
GCOV_MSG
=
/tmp/mysqld-gcov.out
#gcov output
GCOV_ERR
=
/tmp/mysqld-gcov.err
...
...
@@ -61,16 +60,21 @@ CAT=/bin/cat
CUT
=
/usr/bin/cut
ECHO
=
/bin/echo
EXPR
=
`
which
expr
`
FIND
=
/usr/bin/find
GCOV
=
`
which gcov
`
PRINTF
=
/usr/bin/printf
RM
=
/bin/rm
TIME
=
/usr/bin/time
TR
=
/usr/bin/tr
XARGS
=
`
which xargs
`
MYSQLD
=
"
$BASEDIR
/sql/mysqld"
MYSQL_TEST
=
"
$BASEDIR
/client/mysqltest"
MYSQLADMIN
=
"
$BASEDIR
/client/mysqladmin"
MYSQL_TEST
=
"
$MYSQL_TEST
--socket=
$MYSOCK
--database=
$DB
--user=
$DBUSER
--password=
$DBPASSWD
--silent"
INSTALL_DB
=
"
$MYBIN
/mysql-test_install_db"
[
"
$1
"
=
"-gcov"
]
&&
DO_GCOV
=
1
#++
# Terminal Modifications
#--
...
...
@@ -163,35 +167,35 @@ report_stats () {
mysql_install_db
()
{
`
$INSTALL_DB
`
if
[
$?
!=
0
]
;
then
error
"Could not install t
mp
DBs"
error
"Could not install t
est
DBs"
exit
1
fi
return
0
}
gcov_clean
()
{
find ..
-name
-name
\*
.gcov
\
-or
-name
\*
.da | xargs
rm
$FIND
$BASEDIR
-name
\*
.gcov
\
-or
-name
\*
.da |
$XARGS
$RM
}
gcov_collect
()
{
echo
"Collecting source coverage info..."
[
-f
$GCOV_MSG
]
&&
rm
$GCOV_MSG
[
-f
$GCOV_ERR
]
&&
rm
$GCOV_ERR
for
d
in
$MYSQLD_SRC_DIRS
;
do
cd
../
$d
for
f
in
*
.h
*
.cc
*
.c
;
do
$GCOV
$f
2>>
$GCOV_ERR
>>
$GCOV_MSG
$ECHO
"Collecting source coverage info..."
[
-f
$GCOV_MSG
]
&&
$RM
$GCOV_MSG
[
-f
$GCOV_ERR
]
&&
$RM
$GCOV_ERR
for
d
in
$MYSQLD_SRC_DIRS
;
do
cd
$BASEDIR
/
$d
for
f
in
*
.h
*
.cc
*
.c
;
do
$GCOV
$f
2>>
$GCOV_ERR
>>
$GCOV_MSG
done
cd
$CWD
done
cd
../mysql-test
done
echo
"gcov info in
$GCOV_MSG
, errors in
$GCOV_ERR
"
$ECHO
"gcov info in
$GCOV_MSG
, errors in
$GCOV_ERR
"
}
mysql_start
()
{
cd
..
# for gcov
cd
$BASEDIR
# for gcov
$MYSQLD
--no-defaults
\
--skip-networking
\
--basedir
=
$CWD
\
...
...
@@ -200,7 +204,7 @@ mysql_start () {
--socket
=
$MYSOCK
\
--log
=
$MYLOG
\
--language
=
english
>>
$MYERR
2>&1 &
cd
mysql-test
cd
$CWD
return
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