diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-11-28 17:54:06 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-12-04 20:32:59 +0100 |
commit | 6354466a5b75aff7f00fd764d67c65961ebb4ed7 (patch) | |
tree | e78c1ba6c1ababf65de7c20989aff97f19831ed2 | |
parent | 3e8a44c2aa34cf5b05a473255ba248c9de6e517e (diff) | |
download | strongswan-6354466a5b75aff7f00fd764d67c65961ebb4ed7.tar.bz2 strongswan-6354466a5b75aff7f00fd764d67c65961ebb4ed7.tar.xz |
unit-tests: Fix apidoc for libtest
-rw-r--r-- | src/libstrongswan/tests/test_runner.h | 14 | ||||
-rw-r--r-- | src/libstrongswan/tests/test_suite.h | 17 |
2 files changed, 23 insertions, 8 deletions
diff --git a/src/libstrongswan/tests/test_runner.h b/src/libstrongswan/tests/test_runner.h index fb4f52af1..265189812 100644 --- a/src/libstrongswan/tests/test_runner.h +++ b/src/libstrongswan/tests/test_runner.h @@ -13,6 +13,16 @@ * for more details. */ +/** + * @defgroup libtest libtest + * + * @defgroup test_runner test_runner + * @{ @ingroup libtest + */ + +#ifndef TEST_RUNNER_H_ +#define TEST_RUNNER_H_ + #include "test_suite.h" #include <plugins/plugin_feature.h> @@ -53,8 +63,10 @@ struct test_configuration_t { * * The configs array must be terminated with a NULL element. * - * @param configs test suite constructors with dependencies + * @param config test suite constructors with dependencies * @param init_cb init/deinit callback * @return test result, EXIT_SUCCESS if all tests passed */ int test_runner_run(test_configuration_t config[], test_runner_init_t init_cb); + +#endif /** TEST_RUNNER_H_ @}*/ diff --git a/src/libstrongswan/tests/test_suite.h b/src/libstrongswan/tests/test_suite.h index 11aca3b5a..c44f149f5 100644 --- a/src/libstrongswan/tests/test_suite.h +++ b/src/libstrongswan/tests/test_suite.h @@ -15,8 +15,13 @@ * for more details. */ -#ifndef TEST_UTILS_H_ -#define TEST_UTILS_H_ +/** + * @defgroup test_suite test_suite + * @{ @ingroup libtest + */ + +#ifndef TEST_SUITE_H_ +#define TEST_SUITE_H_ #define _GNU_SOURCE #include <setjmp.h> @@ -161,10 +166,8 @@ void test_case_set_timeout(test_case_t *tcase, int s); /** * Add a test function to a test case, looped several times * - * @param tcase test case to add test function to - * @param cb callback function to invoke for test - * @param start start of loop counter - * @param end end of loop counter + * @param suite test suite to add test case to + * @param tcase test case to add */ void test_suite_add_case(test_suite_t *suite, test_case_t *tcase); @@ -326,4 +329,4 @@ void test_fail_msg(const char *file, int line, char *fmt, ...); #define START_TEARDOWN(name) static void name() { #define END_TEARDOWN } -#endif /** TEST_UTILS_H_ */ +#endif /** TEST_SUITE_H_ @}*/ |