Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1f07bc02
Commit
1f07bc02
authored
Apr 17, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Add support for --version, --help and /?.
parent
88c80635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
main.c
programs/winetest/main.c
+19
-9
No files found.
programs/winetest/main.c
View file @
1f07bc02
...
...
@@ -774,14 +774,16 @@ usage (void)
{
fprintf
(
stderr
,
"Usage: winetest [OPTION]... [TESTS]
\n\n
"
" -c console mode, no GUI
\n
"
" -e preserve the environment
\n
"
" -h print this message and exit
\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
"
" -s FILE submit FILE, do not run tests
\n
"
" -t TAG include TAG of characters [-.0-9a-zA-Z] in the report
\n
"
);
" --help print this message and exit
\n
"
" --version print the build version and exit
\n
"
" -c console mode, no GUI
\n
"
" -e preserve the environment
\n
"
" -h print this message and exit
\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
"
" -s FILE submit FILE, do not run tests
\n
"
" -t TAG include TAG of characters [-.0-9a-zA-Z] in the report
\n
"
);
}
int
main
(
int
argc
,
char
*
argv
[]
)
...
...
@@ -797,7 +799,15 @@ int main( int argc, char *argv[] )
for
(
i
=
1
;
argv
[
i
];
i
++
)
{
if
(
argv
[
i
][
0
]
!=
'-'
||
argv
[
i
][
2
])
{
if
(
!
strcmp
(
argv
[
i
],
"--help"
))
{
usage
();
exit
(
0
);
}
else
if
(
!
strcmp
(
argv
[
i
],
"--version"
))
{
printf
(
"%-12.12s
\n
"
,
build_id
[
0
]
?
build_id
:
"unknown"
);
exit
(
0
);
}
else
if
((
argv
[
i
][
0
]
!=
'-'
&&
argv
[
i
][
0
]
!=
'/'
)
||
argv
[
i
][
2
])
{
if
(
nb_filters
==
sizeof
(
filters
)
/
sizeof
(
filters
[
0
]))
{
report
(
R_ERROR
,
"Too many test filters specified"
);
...
...
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