git.samba.org
/
pam_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de959bc
)
tests: Allow to filter tests
author
Andreas Schneider
<asn@samba.org>
Fri, 25 Jun 2021 11:45:31 +0000
(13:45 +0200)
committer
Andreas Schneider
<asn@samba.org>
Fri, 25 Jun 2021 11:45:47 +0000
(13:45 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
tests/test_pam_wrapper.c
patch
|
blob
|
history
diff --git
a/tests/test_pam_wrapper.c
b/tests/test_pam_wrapper.c
index 1e0c2924ad8ffe9ef30a5b17718eb542f7152e5b..6fca8049275f7794b3804a97ffe5e2dfa34dee0a 100644
(file)
--- a/
tests/test_pam_wrapper.c
+++ b/
tests/test_pam_wrapper.c
@@
-985,7
+985,8
@@
static void test_libpamtest_get_failed_test(void **state)
assert_ptr_equal(failed_tc, &tests[0]);
}
-int main(void) {
+int main(int argc, char *argv[])
+{
int rc;
const struct CMUnitTest init_tests[] = {
@@
-1056,6
+1057,10
@@
int main(void) {
cmocka_unit_test(test_get_set),
};
+ if (argc == 2) {
+ cmocka_set_test_filter(argv[1]);
+ }
+
rc = cmocka_run_group_tests(init_tests, NULL, NULL);
return rc;