2021-08-19 15:29:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-20 21:41:37 -05:00
|
|
|
/**
|
|
|
|
** \defgroup tests Tests
|
|
|
|
** This is the test harness.
|
|
|
|
** @{
|
|
|
|
*/
|
|
|
|
|
2024-02-28 21:18:59 -05:00
|
|
|
/**
|
|
|
|
** Options to control how tests are run.
|
|
|
|
*/
|
2021-09-06 14:23:22 -04:00
|
|
|
typedef struct _tf_test_options_t
|
|
|
|
{
|
2024-02-28 21:18:59 -05:00
|
|
|
/** The path to the Tilde Friends executable, in order to run subprocesses. */
|
2021-09-06 14:23:22 -04:00
|
|
|
const char* exe_path;
|
2024-02-28 21:18:59 -05:00
|
|
|
/** A comma-separated list of tests to run, or NULL. */
|
2021-09-06 14:23:22 -04:00
|
|
|
const char* tests;
|
|
|
|
} tf_test_options_t;
|
|
|
|
|
2024-02-28 21:18:59 -05:00
|
|
|
/**
|
|
|
|
** Run tests.
|
|
|
|
** @param options Test options.
|
|
|
|
*/
|
2021-09-06 14:23:22 -04:00
|
|
|
void tf_tests(const tf_test_options_t* options);
|
2024-02-20 21:41:37 -05:00
|
|
|
|
|
|
|
/** @} */
|