Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6f5a0a3a
Commit
6f5a0a3a
authored
Sep 28, 2010
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Add the '-n' option so one can specify a list of tests to exclude.
parent
1914f3ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
main.c
programs/winetest/main.c
+9
-4
No files found.
programs/winetest/main.c
View file @
6f5a0a3a
...
...
@@ -60,6 +60,7 @@ static char build_id[64];
/* filters for running only specific tests */
static
char
*
filters
[
64
];
static
unsigned
int
nb_filters
=
0
;
static
BOOL
exclude_tests
=
FALSE
;
/* Needed to check for .NET dlls */
static
HMODULE
hmscoree
;
...
...
@@ -86,17 +87,17 @@ static BOOL test_filtered_out( LPCSTR module, LPCSTR testname )
if
(
p
)
*
p
=
0
;
len
=
strlen
(
dllname
);
if
(
!
nb_filters
)
return
FALSE
;
if
(
!
nb_filters
)
return
exclude_tests
;
for
(
i
=
0
;
i
<
nb_filters
;
i
++
)
{
if
(
!
strncmp
(
dllname
,
filters
[
i
],
len
))
{
if
(
!
filters
[
i
][
len
])
return
FALSE
;
if
(
!
filters
[
i
][
len
])
return
exclude_tests
;
if
(
filters
[
i
][
len
]
!=
':'
)
continue
;
if
(
!
testname
||
!
strcmp
(
testname
,
&
filters
[
i
][
len
+
1
]
))
return
FALSE
;
if
(
!
testname
||
!
strcmp
(
testname
,
&
filters
[
i
][
len
+
1
]
))
return
exclude_tests
;
}
}
return
TRUE
;
return
!
exclude_tests
;
}
static
char
*
get_file_version
(
char
*
file_name
)
...
...
@@ -1004,6 +1005,7 @@ usage (void)
" -e preserve the environment
\n
"
" -h print this message and exit
\n
"
" -m MAIL an email address to enable developers to contact you
\n
"
" -n exclude the specified tests
\n
"
" -p shutdown when the tests are done
\n
"
" -q quiet mode, no output at all
\n
"
" -o FILE put report into FILE, do not submit
\n
"
...
...
@@ -1061,6 +1063,9 @@ int main( int argc, char *argv[] )
exit
(
2
);
}
break
;
case
'n'
:
exclude_tests
=
TRUE
;
break
;
case
'p'
:
poweroff
=
1
;
break
;
...
...
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