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 / Register
Toggle navigation
Open sidebar
Håvard Eidnes
BIND
Commits
a9c33747
Commit
a9c33747
authored
Sep 08, 2020
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the ability to print out the list of test names (-l)
parent
76837484
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
lib/isc/tests/task_test.c
lib/isc/tests/task_test.c
+10
-1
No files found.
lib/isc/tests/task_test.c
View file @
a9c33747
...
...
@@ -1550,12 +1550,21 @@ main(int argc, char **argv) {
_teardown
),
};
struct
CMUnitTest
selected
[
sizeof
(
tests
)
/
sizeof
(
tests
[
0
])];
size_t
i
;
int
c
;
memset
(
selected
,
0
,
sizeof
(
selected
));
while
((
c
=
isc_commandline_parse
(
argc
,
argv
,
"t:v"
))
!=
-
1
)
{
while
((
c
=
isc_commandline_parse
(
argc
,
argv
,
"
l
t:v"
))
!=
-
1
)
{
switch
(
c
)
{
case
'l'
:
for
(
i
=
0
;
i
<
(
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]));
i
++
)
{
if
(
tests
[
i
].
name
!=
NULL
)
{
fprintf
(
stdout
,
"%s
\n
"
,
tests
[
i
].
name
);
}
}
return
(
0
);
case
't'
:
if
(
!
cmocka_add_test_byname
(
tests
,
isc_commandline_argument
,
selected
))
...
...
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