unit-tests: Pass a test suite collection name to print during test execution

As we except to get more and more test runners for the different components,
we add a name to easily identify them on the test output.
This commit is contained in:
Martin Willi
2014-01-22 15:34:53 +01:00
parent 589fab2260
commit b034131555
4 changed files with 12 additions and 9 deletions
+3 -1
View File
@@ -66,10 +66,12 @@ struct test_configuration_t {
*
* The configs array must be terminated with a NULL element.
*
* @oaran name name of test runner
* @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);
int test_runner_run(const char *name, test_configuration_t config[],
test_runner_init_t init_cb);
#endif /** TEST_RUNNER_H_ @}*/