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
2000cef7
Commit
2000cef7
authored
Aug 13, 2009
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #44979 Enhance MTR --experimental to support platform qualifier
Adding @<platform> syntax
parent
b742c771
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/collections/README.experimental
mysql-test/collections/README.experimental
+7
-0
mysql-test/collections/default.experimental
mysql-test/collections/default.experimental
+1
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+12
-0
No files found.
mysql-test/collections/README.experimental
View file @
2000cef7
...
...
@@ -23,3 +23,10 @@ The syntax is as follows:
start with the same characters up to the last letter before the asterisk
are considered experimental:
main.a* # get rid of main.alias, main.alibaba and main.agliolio
6) Optionally, the test case may be followed by one or more platform
qualifiers beginning with @ or @!. The test will then be considered
experimental only/except on that platform. Basic OS names as
reported by $^O in Perl, or 'windows' are supported, this includes
solaris, linux, windows, aix, darwin, ... Example:
main.alias @aix @windows # Fails on those
mysql-test/collections/default.experimental
View file @
2000cef7
funcs_1.charset_collation_1 # depends on compile-time decisions
main.plugin_load @solaris # Bug #42144
mysql-test/mysql-test-run.pl
View file @
2000cef7
...
...
@@ -984,6 +984,9 @@ sub command_line_setup {
if
(
$opt_experimental
)
{
# $^O on Windows considered not generic enough
my
$plat
=
(
IS_WINDOWS
)
?
'
windows
'
:
$^O
;
# read the list of experimental test cases from the file specified on
# the command line
open
(
FILE
,
"
<
",
$opt_experimental
)
or
mtr_error
("
Can't read experimental file:
$opt_experimental
");
...
...
@@ -994,6 +997,15 @@ sub command_line_setup {
# remove comments (# foo) at the beginning of the line, or after a
# blank at the end of the line
s/( +|^)#.*$//
;
# If @ platform specifier given, use this entry only if it contains
# @<platform> or @!<xxx> where xxx != platform
if
(
/\@.*/
)
{
next
if
(
/\@!$plat/
);
next
unless
(
/\@$plat/
or
/\@!/
);
# Then remove @ and everything after it
s/\@.*$//
;
}
# remove whitespace
s/^ +//
;
s/ +$//
;
...
...
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