diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-11-20 12:02:33 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-11-20 16:46:47 -0500 |
commit | 9cbcc60997b3d9fd6c5c17f956bc90aac1abba70 (patch) | |
tree | ad9434afd0fc57c2d52070ec93c8c4d1bdcbaf1b /server/tests | |
parent | 2fb0f364394e412acb8e47bcf3f166dbabb79b28 (diff) | |
download | sssd-9cbcc60997b3d9fd6c5c17f956bc90aac1abba70.tar.gz sssd-9cbcc60997b3d9fd6c5c17f956bc90aac1abba70.tar.bz2 sssd-9cbcc60997b3d9fd6c5c17f956bc90aac1abba70.zip |
Only display errors in unit tests
If you want to turn verbosity back on, just set the environment
variable CK_VERBOSITY=verbose
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/check_and_open-tests.c | 3 | ||||
-rw-r--r-- | server/tests/fail_over-tests.c | 3 | ||||
-rw-r--r-- | server/tests/files-tests.c | 3 | ||||
-rw-r--r-- | server/tests/find_uid-tests.c | 3 | ||||
-rw-r--r-- | server/tests/ipa_timerules-tests.c | 3 | ||||
-rw-r--r-- | server/tests/krb5_utils-tests.c | 5 | ||||
-rw-r--r-- | server/tests/refcount-tests.c | 3 | ||||
-rw-r--r-- | server/tests/resolv-tests.c | 3 | ||||
-rw-r--r-- | server/tests/strtonum-tests.c | 3 | ||||
-rw-r--r-- | server/tests/sysdb-tests.c | 3 |
10 files changed, 21 insertions, 11 deletions
diff --git a/server/tests/check_and_open-tests.c b/server/tests/check_and_open-tests.c index ce5ebe19..2e964557 100644 --- a/server/tests/check_and_open-tests.c +++ b/server/tests/check_and_open-tests.c @@ -205,7 +205,8 @@ int main(void) int number_failed; Suite *s = check_and_open_suite (); SRunner *sr = srunner_create (s); - srunner_run_all (sr, CK_NORMAL); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; diff --git a/server/tests/fail_over-tests.c b/server/tests/fail_over-tests.c index 49375a00..16cc60e3 100644 --- a/server/tests/fail_over-tests.c +++ b/server/tests/fail_over-tests.c @@ -296,7 +296,8 @@ main(int argc, const char *argv[]) suite = create_suite(); sr = srunner_create(suite); - srunner_run_all(sr, CK_VERBOSE); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); failure_count = srunner_ntests_failed(sr); srunner_free(sr); return (failure_count == 0 ? EXIT_SUCCESS : EXIT_FAILURE); diff --git a/server/tests/files-tests.c b/server/tests/files-tests.c index bc346ba5..90b97177 100644 --- a/server/tests/files-tests.c +++ b/server/tests/files-tests.c @@ -314,7 +314,8 @@ int main(int argc, char *argv[]) Suite *s = files_suite(); SRunner *sr = srunner_create(s); - srunner_run_all(sr, CK_NORMAL); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; diff --git a/server/tests/find_uid-tests.c b/server/tests/find_uid-tests.c index bd213cd5..9eafadd4 100644 --- a/server/tests/find_uid-tests.c +++ b/server/tests/find_uid-tests.c @@ -117,7 +117,8 @@ int main(void) int number_failed; Suite *s = find_uid_suite (); SRunner *sr = srunner_create (s); - srunner_run_all (sr, CK_NORMAL); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; diff --git a/server/tests/ipa_timerules-tests.c b/server/tests/ipa_timerules-tests.c index 12ce6650..0a7be90b 100644 --- a/server/tests/ipa_timerules-tests.c +++ b/server/tests/ipa_timerules-tests.c @@ -571,7 +571,8 @@ int main(int argc, const char *argv[]) timelib_suite = create_timelib_suite(); sr = srunner_create(timelib_suite); - srunner_run_all(sr, CK_VERBOSE); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); failure_count = srunner_ntests_failed(sr); srunner_free(sr); return (failure_count==0 ? EXIT_SUCCESS : EXIT_FAILURE); diff --git a/server/tests/krb5_utils-tests.c b/server/tests/krb5_utils-tests.c index b0f6a1dd..c3d9f4cf 100644 --- a/server/tests/krb5_utils-tests.c +++ b/server/tests/krb5_utils-tests.c @@ -1,7 +1,7 @@ /* SSSD - Kerberos 5 Backend Module -- Utilities tests + Kerberos 5 Backend Module -- Utilities tests Authors: Sumit Bose <sbose@redhat.com> @@ -297,7 +297,8 @@ int main(void) int number_failed; Suite *s = krb5_utils_suite (); SRunner *sr = srunner_create (s); - srunner_run_all (sr, CK_NORMAL); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); number_failed = srunner_ntests_failed (sr); srunner_free (sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; diff --git a/server/tests/refcount-tests.c b/server/tests/refcount-tests.c index ff82b4ca..db2a256e 100644 --- a/server/tests/refcount-tests.c +++ b/server/tests/refcount-tests.c @@ -223,7 +223,8 @@ int main(int argc, const char *argv[]) suite = create_suite(); sr = srunner_create(suite); srunner_set_fork_status(sr, CK_FORK); - srunner_run_all(sr, CK_VERBOSE); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); failure_count = srunner_ntests_failed(sr); srunner_free(sr); return (failure_count == 0 ? EXIT_SUCCESS : EXIT_FAILURE); diff --git a/server/tests/resolv-tests.c b/server/tests/resolv-tests.c index ea1ac9fb..bf76849a 100644 --- a/server/tests/resolv-tests.c +++ b/server/tests/resolv-tests.c @@ -591,7 +591,8 @@ int main(int argc, const char *argv[]) resolv_suite = create_resolv_suite(); sr = srunner_create(resolv_suite); - srunner_run_all(sr, CK_VERBOSE); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); failure_count = srunner_ntests_failed(sr); srunner_free(sr); return (failure_count==0 ? EXIT_SUCCESS : EXIT_FAILURE); diff --git a/server/tests/strtonum-tests.c b/server/tests/strtonum-tests.c index 9aa82a02..7b9cf522 100644 --- a/server/tests/strtonum-tests.c +++ b/server/tests/strtonum-tests.c @@ -447,7 +447,8 @@ int main(int argc, const char *argv[]) { strtonum_suite = create_strtonum_suite(); sr = srunner_create(strtonum_suite); - srunner_run_all(sr, CK_VERBOSE); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); failure_count = srunner_ntests_failed(sr); srunner_free(sr); return (failure_count==0 ? EXIT_SUCCESS : EXIT_FAILURE); diff --git a/server/tests/sysdb-tests.c b/server/tests/sysdb-tests.c index f1d3ae49..d4f0e2fd 100644 --- a/server/tests/sysdb-tests.c +++ b/server/tests/sysdb-tests.c @@ -2532,7 +2532,8 @@ int main(int argc, const char *argv[]) { sysdb_suite = create_sysdb_suite(); sr = srunner_create(sysdb_suite); - srunner_run_all(sr, CK_VERBOSE); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); failure_count = srunner_ntests_failed(sr); srunner_free(sr); return (failure_count==0 ? EXIT_SUCCESS : EXIT_FAILURE); |