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
61fdd40f
Commit
61fdd40f
authored
Oct 11, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-test-run try to fool bk again
parent
669160b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
mysql-test/mysql-test-run
mysql-test/mysql-test-run
+31
-2
No files found.
mysql-test/mysql-test-run
View file @
61fdd40f
...
...
@@ -26,6 +26,11 @@ SYST=0
REALT
=
0
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_ERR
=
/tmp/mysqld-gcov.err
[
-z
$COLUMNS
]
&&
COLUMNS
=
80
E
=
`
expr
$COLUMNS
- 8
`
...
...
@@ -64,7 +69,7 @@ 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
...
...
@@ -166,8 +171,29 @@ mysql_install_db () {
return
0
}
gcov_clean
()
{
find ..
-name
-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
done
cd
../mysql-test
done
echo
"gcov info in
$GCOV_MSG
, errors in
$GCOV_ERR
"
}
mysql_start
()
{
cd
..
# for gcov
$MYSQLD
--no-defaults
\
--skip-networking
\
--basedir
=
$CWD
\
...
...
@@ -176,7 +202,7 @@ mysql_start () {
--socket
=
$MYSOCK
\
--log
=
$MYLOG
\
--language
=
english
>>
$MYERR
2>&1 &
cd
mysql-test
return
1
}
...
...
@@ -206,6 +232,7 @@ mysql_loadstd () {
return
1
}
[
$DO_GCOV
=
1
]
&&
gcov_clean
# clean up stale gcov files if running with gcov
mysql_install_db
...
...
@@ -287,4 +314,6 @@ $ECHO
report_stats
$ECHO
[
$DO_GCOV
=
1
]
&&
gcov_collect
# collect coverage information
exit
0
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