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
95b87814
Commit
95b87814
authored
May 27, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --list option to the tests and use that in winetest.
parent
eeb0a90e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
test.h
include/wine/test.h
+17
-5
main.c
programs/winetest/main.c
+4
-2
No files found.
include/wine/test.h
View file @
95b87814
...
...
@@ -285,6 +285,16 @@ static const struct test *find_test( const char *name )
}
/* Display list of valid tests */
static
void
list_tests
(
void
)
{
const
struct
test
*
test
;
fprintf
(
stdout
,
"Valid test names:
\n
"
);
for
(
test
=
winetest_testlist
;
test
->
name
;
test
++
)
fprintf
(
stdout
,
" %s
\n
"
,
test
->
name
);
}
/* Run a named test, and return exit status */
static
int
run_test
(
const
char
*
name
)
{
...
...
@@ -316,11 +326,8 @@ static int run_test( const char *name )
/* Display usage and exit */
static
void
usage
(
const
char
*
argv0
)
{
const
struct
test
*
test
;
fprintf
(
stdout
,
"Usage: %s test_name
\n
"
,
argv0
);
fprintf
(
stdout
,
"
\n
Valid test names:
\n
"
);
for
(
test
=
winetest_testlist
;
test
->
name
;
test
++
)
fprintf
(
stdout
,
" %s
\n
"
,
test
->
name
);
fprintf
(
stdout
,
"Usage: %s test_name
\n\n
"
,
argv0
);
list_tests
();
exit_process
(
1
);
}
...
...
@@ -345,6 +352,11 @@ int main( int argc, char **argv )
return
run_test
(
winetest_testlist
[
0
].
name
);
usage
(
argv
[
0
]
);
}
if
(
!
strcmp
(
argv
[
1
],
"--list"
))
{
list_tests
();
return
0
;
}
return
run_test
(
argv
[
1
]);
}
...
...
programs/winetest/main.c
View file @
95b87814
...
...
@@ -348,7 +348,7 @@ run_ex (char *cmd, const char *out, DWORD ms)
void
get_subtests
(
const
char
*
tempdir
,
struct
wine_test
*
test
,
int
id
)
{
char
*
subname
;
char
*
subname
,
*
cmd
;
FILE
*
subfile
;
size_t
total
;
char
buffer
[
8192
],
*
index
;
...
...
@@ -361,7 +361,9 @@ get_subtests (const char *tempdir, struct wine_test *test, int id)
if
(
!
subname
)
report
(
R_FATAL
,
"Can't name subtests file."
);
extract_test
(
test
,
tempdir
,
id
);
run_ex
(
test
->
exename
,
subname
,
5000
);
cmd
=
strmake
(
NULL
,
"%s --list"
,
test
->
exename
);
run_ex
(
cmd
,
subname
,
5000
);
free
(
cmd
);
subfile
=
fopen
(
subname
,
"r"
);
if
(
!
subfile
)
{
...
...
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