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
02693c37
Commit
02693c37
authored
Oct 05, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add policy directive about keeping mysqltest framework tools identical in all versions
parent
42e60f5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
28 deletions
+17
-28
client/mysqltest.c
client/mysqltest.c
+2
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+15
-28
No files found.
client/mysqltest.c
View file @
02693c37
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
See the "MySQL Test framework manual" for more information
See the "MySQL Test framework manual" for more information
http://dev.mysql.com/doc/mysqltest/en/index.html
http://dev.mysql.com/doc/mysqltest/en/index.html
Please keep the test framework tools identical in all versions!
Written by:
Written by:
Sasha Pachev <sasha@mysql.com>
Sasha Pachev <sasha@mysql.com>
Matt Wagner <matt@mysql.com>
Matt Wagner <matt@mysql.com>
...
...
mysql-test/mysql-test-run.pl
View file @
02693c37
#!/usr/bin/perl
#!/usr/bin/perl
# -*- cperl -*-
# -*- cperl -*-
# This is a transformation of the "mysql-test-run" Bourne shell script
# to Perl. There are reasons this rewrite is not the prettiest Perl
# you have seen
#
#
# - The original script is huge and for most part uncommented,
##############################################################################
# not even a usage description of the flags.
#
# mysql-test-run.pl
#
# Tool used for executing a suite of .test file
#
#
# - There has been an attempt to write a replacement in C for the
# See the "MySQL Test framework manual" for more information
# original Bourne shell script. It was kind of working but lacked
# http://dev.mysql.com/doc/mysqltest/en/index.html
# lot of functionality to really be a replacement. Not to redo
# that mistake and catch all the obscure features of the original
# script, the rewrite in Perl is more close to the original script
# meaning it also share some of the ugly parts as well.
#
#
# - The original intention was that this script was to be a prototype
# Please keep the test framework tools identical in all versions!
# to be the base for a new C version with full functionality. Since
#
# then it was decided that the Perl version should replace the
##############################################################################
# Bourne shell version, but the Perl style still reflects the wish
# to make the Perl to C step easy.
#
#
#
Some coding style from the original intent has been ke
pt
#
Coding style directions for this perl scri
pt
#
#
# - To make this Perl script easy to alter even for those that not
# - To make this Perl script easy to alter even for those that not
# code Perl that often,
the coding style is
as close as possible to
# code Perl that often,
keeep the coding style
as close as possible to
# the C/C++ MySQL coding standard.
# the C/C++ MySQL coding standard.
#
#
# - All lists of arguments to send to commands are Perl lists/arrays,
# - All lists of arguments to send to commands are Perl lists/arrays,
...
@@ -42,15 +36,6 @@
...
@@ -42,15 +36,6 @@
# the information. This separates the "find information" from the
# the information. This separates the "find information" from the
# "do the work" and makes the program more easy to maintain.
# "do the work" and makes the program more easy to maintain.
#
#
# - At the moment, there are tons of "global" variables that control
# this script, even accessed from the files in "lib/*.pl". This
# will change over time, for now global variables are used instead
# of using %opt, %path and %exe hashes, because I want more
# compile time checking, that hashes would not give me. Once this
# script is debugged, hashes will be used and passed as parameters
# to functions, to more closely mimic how it would be coded in C
# using structs.
#
# - The rule when it comes to the logic of this program is
# - The rule when it comes to the logic of this program is
#
#
# command_line_setup() - is to handle the logic between flags
# command_line_setup() - is to handle the logic between flags
...
@@ -2758,10 +2743,12 @@ sub do_after_run_mysqltest($)
...
@@ -2758,10 +2743,12 @@ sub do_after_run_mysqltest($)
my
$tinfo
=
shift
;
my
$tinfo
=
shift
;
my
$tname
=
$tinfo
->
{'
name
'};
my
$tname
=
$tinfo
->
{'
name
'};
mtr_tofile
(
$path_mysqltest_log
,"
CURRENT TEST
$tname
\n
");
# Save info from this testcase run to mysqltest.log
# Save info from this testcase run to mysqltest.log
mtr_appendfile_to_file
(
$path_timefile
,
$path_mysqltest_log
)
mtr_appendfile_to_file
(
$path_timefile
,
$path_mysqltest_log
)
if
-
f
$path_timefile
;
if
-
f
$path_timefile
;
mtr_tofile
(
$path_mysqltest_log
,"
CURRENT TEST
$tname
\n
");
}
}
...
...
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