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
c38d96d9
Commit
c38d96d9
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
658bfc4c
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 @
c38d96d9
...
@@ -29,7 +29,6 @@ TIMEFILE="$CWD/var/tmp/mysqltest-time"
...
@@ -29,7 +29,6 @@ TIMEFILE="$CWD/var/tmp/mysqltest-time"
DASHBLANK
=
"---- ---- -------"
DASHBLANK
=
"---- ---- -------"
MYSQLD_SRC_DIRS
=
"strings mysys include extra regex isam merge myisam
\
MYSQLD_SRC_DIRS
=
"strings mysys include extra regex isam merge myisam
\
myisammrg heap sql"
myisammrg heap sql"
GCOV
=
`
which gcov
`
GCOV_MSG
=
/tmp/mysqld-gcov.out
#gcov output
GCOV_MSG
=
/tmp/mysqld-gcov.out
#gcov output
GCOV_ERR
=
/tmp/mysqld-gcov.err
GCOV_ERR
=
/tmp/mysqld-gcov.err
...
@@ -61,16 +60,21 @@ CAT=/bin/cat
...
@@ -61,16 +60,21 @@ CAT=/bin/cat
CUT
=
/usr/bin/cut
CUT
=
/usr/bin/cut
ECHO
=
/bin/echo
ECHO
=
/bin/echo
EXPR
=
`
which
expr
`
EXPR
=
`
which
expr
`
FIND
=
/usr/bin/find
GCOV
=
`
which gcov
`
PRINTF
=
/usr/bin/printf
PRINTF
=
/usr/bin/printf
RM
=
/bin/rm
RM
=
/bin/rm
TIME
=
/usr/bin/time
TIME
=
/usr/bin/time
TR
=
/usr/bin/tr
TR
=
/usr/bin/tr
XARGS
=
`
which xargs
`
MYSQLD
=
"
$BASEDIR
/sql/mysqld"
MYSQLD
=
"
$BASEDIR
/sql/mysqld"
MYSQL_TEST
=
"
$BASEDIR
/client/mysqltest"
MYSQL_TEST
=
"
$BASEDIR
/client/mysqltest"
MYSQLADMIN
=
"
$BASEDIR
/client/mysqladmin"
MYSQLADMIN
=
"
$BASEDIR
/client/mysqladmin"
MYSQL_TEST
=
"
$MYSQL_TEST
--socket=
$MYSOCK
--database=
$DB
--user=
$DBUSER
--password=
$DBPASSWD
--silent"
MYSQL_TEST
=
"
$MYSQL_TEST
--socket=
$MYSOCK
--database=
$DB
--user=
$DBUSER
--password=
$DBPASSWD
--silent"
INSTALL_DB
=
"
$MYBIN
/mysql-test_install_db"
INSTALL_DB
=
"
$MYBIN
/mysql-test_install_db"
[
"
$1
"
=
"-gcov"
]
&&
DO_GCOV
=
1
[
"
$1
"
=
"-gcov"
]
&&
DO_GCOV
=
1
#++
#++
# Terminal Modifications
# Terminal Modifications
#--
#--
...
@@ -163,35 +167,35 @@ report_stats () {
...
@@ -163,35 +167,35 @@ report_stats () {
mysql_install_db
()
{
mysql_install_db
()
{
`
$INSTALL_DB
`
`
$INSTALL_DB
`
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
error
"Could not install t
mp
DBs"
error
"Could not install t
est
DBs"
exit
1
exit
1
fi
fi
return
0
return
0
}
}
gcov_clean
()
{
gcov_clean
()
{
find ..
-name
-name
\*
.gcov
\
$FIND
$BASEDIR
-name
\*
.gcov
\
-or
-name
\*
.da | xargs
rm
-or
-name
\*
.da |
$XARGS
$RM
}
}
gcov_collect
()
{
gcov_collect
()
{
echo
"Collecting source coverage info..."
$ECHO
"Collecting source coverage info..."
[
-f
$GCOV_MSG
]
&&
rm
$GCOV_MSG
[
-f
$GCOV_MSG
]
&&
$RM
$GCOV_MSG
[
-f
$GCOV_ERR
]
&&
rm
$GCOV_ERR
[
-f
$GCOV_ERR
]
&&
$RM
$GCOV_ERR
for
d
in
$MYSQLD_SRC_DIRS
;
do
for
d
in
$MYSQLD_SRC_DIRS
;
do
cd
../
$d
cd
$BASEDIR
/
$d
for
f
in
*
.h
*
.cc
*
.c
;
do
for
f
in
*
.h
*
.cc
*
.c
;
do
$GCOV
$f
2>>
$GCOV_ERR
>>
$GCOV_MSG
$GCOV
$f
2>>
$GCOV_ERR
>>
$GCOV_MSG
done
cd
$CWD
done
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
()
{
mysql_start
()
{
cd
..
# for gcov
cd
$BASEDIR
# for gcov
$MYSQLD
--no-defaults
\
$MYSQLD
--no-defaults
\
--skip-networking
\
--skip-networking
\
--basedir
=
$CWD
\
--basedir
=
$CWD
\
...
@@ -200,7 +204,7 @@ mysql_start () {
...
@@ -200,7 +204,7 @@ mysql_start () {
--socket
=
$MYSOCK
\
--socket
=
$MYSOCK
\
--log
=
$MYLOG
\
--log
=
$MYLOG
\
--language
=
english
>>
$MYERR
2>&1 &
--language
=
english
>>
$MYERR
2>&1 &
cd
mysql-test
cd
$CWD
return
1
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