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
7a1ccf90
Commit
7a1ccf90
authored
Aug 14, 2006
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge romeo.(none):/home/bkroot/mysql-5.1-new-maint
into romeo.(none):/home/bk/mytap-mysql-5.1-new-maint
parents
b93a5c5f
2c21e455
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
25 deletions
+8
-25
unittest/README.txt
unittest/README.txt
+7
-0
unittest/unit.pl
unittest/unit.pl
+1
-25
No files found.
unittest/README.txt
View file @
7a1ccf90
...
@@ -37,3 +37,10 @@ directory and add the following to the Makefile.am in that directory
...
@@ -37,3 +37,10 @@ directory and add the following to the Makefile.am in that directory
Note, it's important to have "-t" at the end of the filename, otherwise the
Note, it's important to have "-t" at the end of the filename, otherwise the
test won't be executed by 'make test' !
test won't be executed by 'make test' !
Documentation
-------------
There is Doxygen-generated documentation available at:
https://intranet.mysql.com/~mkindahl/mytap/html/
unittest/unit.pl
View file @
7a1ccf90
#!/usr/bin/perl
#!/usr/bin/perl
# Override _command_line in the standard Perl test harness to prevent
# it from using "perl" to run the test scripts.
package
MySQL::
Straps
;
use
base
qw(Test::Harness::Straps)
;
use
strict
;
sub
_command_line
{
return
$_
[
1
]
}
package
main
;
use
Test::
Harness
qw(&runtests $verbose)
;
use
Test::
Harness
qw(&runtests $verbose)
;
use
File::
Find
;
use
File::
Find
;
...
@@ -37,9 +23,6 @@ unit - Run unit tests in directory
...
@@ -37,9 +23,6 @@ unit - Run unit tests in directory
my
$cmd
=
shift
;
my
$cmd
=
shift
;
# $Test::Harness::Verbose = 1;
# $Test::Harness::Debug = 1;
if
(
defined
$cmd
&&
exists
$dispatch
{
$cmd
})
{
if
(
defined
$cmd
&&
exists
$dispatch
{
$cmd
})
{
$dispatch
{
$cmd
}
->
(
@ARGV
);
$dispatch
{
$cmd
}
->
(
@ARGV
);
}
else
{
}
else
{
...
@@ -95,14 +78,7 @@ sub run_cmd (@) {
...
@@ -95,14 +78,7 @@ sub run_cmd (@) {
if
(
@files
>
0
)
{
if
(
@files
>
0
)
{
# Removing the first './' from the file names
# Removing the first './' from the file names
foreach
(
@files
)
{
s!^\./!!
}
foreach
(
@files
)
{
s!^\./!!
}
$ENV
{'
HARNESS_PERL_SWITCHES
'}
.=
q" -e 'exec @ARGV'"
;
# Install the strap above instead of the default strap. Since
# we are replacing the straps under the feet of Test::Harness,
# we need to do some basic initializations in the new straps.
$
Test::Harness::
Strap
=
MySQL::
Straps
->
new
;
$
Test::Harness::
Strap
->
{
callback
}
=
\&
Test::Harness::
strap_callback
if
defined
&
Test::Harness::
strap_callback
;
runtests
@files
;
runtests
@files
;
}
}
}
}
...
...
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