Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
cd0fc2fe
Commit
cd0fc2fe
authored
Jan 22, 2015
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops, add --xml option too
parent
a95f5922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
tester/mediastreamer2_tester.c
tester/mediastreamer2_tester.c
+7
-2
No files found.
tester/mediastreamer2_tester.c
View file @
cd0fc2fe
...
...
@@ -175,6 +175,8 @@ int mediastreamer2_tester_run_tests(const char *suite_name, const char *test_nam
if
(
xml_file
!=
NULL
){
CU_set_output_filename
(
xml_file
);
}
if
(
xml
)
{
CU_automated_run_tests
();
}
else
{
#if HAVE_CU_GET_SUITE
...
...
@@ -240,6 +242,7 @@ void helper(const char *name) {
#if HAVE_CU_CURSES
"
\t\t\t
--curses
\n
"
#endif
"
\t\t\t
--xml
\n
"
"
\t\t\t
--xml-file <xml file prefix (will be suffixed by '-Results.xml')>
\n
"
,
name
);
}
...
...
@@ -279,6 +282,8 @@ int main (int argc, char *argv[]) {
}
else
if
(
strcmp
(
argv
[
i
],
"--xml-file"
)
==
0
){
CHECK_ARG
(
"--xml-file"
,
++
i
,
argc
);
xml_file
=
argv
[
i
];
}
else
if
(
strcmp
(
argv
[
i
],
"--xml"
)
==
0
){
xml
=
1
;
}
#if HAVE_CU_GET_SUITE
else
if
(
strcmp
(
argv
[
i
],
"--test"
)
==
0
)
{
...
...
@@ -324,13 +329,13 @@ int main (int argc, char *argv[]) {
}
#ifdef HAVE_CU_CURSES
if
(
xml
_file
&&
curses
){
if
(
xml
&&
curses
){
printf
(
"Cannot use both xml and curses
\n
"
);
return
-
1
;
}
#endif
if
(
xml
_file
&&
(
suite_name
||
test_name
)
){
if
(
xml
&&
(
suite_name
||
test_name
)
){
printf
(
"Cannot use both xml and specific test suite
\n
"
);
return
-
1
;
}
...
...
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