11 #include "definitions.h" 74 #define SCR_TF_XFAIL 0x00000001 79 #define SCR_RF_FAIL_FAST 0x00000001 83 #define SCR_RF_VERBOSE 0x00000002 109 SCR_NONNULL(2, 3) __attribute__((deprecated("scrGroupAddTest is deprecated. Use
scrAddTest.")));
129 scrGroupPatchFunction(
scrGroup group, const
char *func_name, const
char *file_substring,
130 void *new_func) SCR_EXPORT SCR_NONNULL(2, 4)
131 __attribute__((deprecated("scrGroupPatchFunction is deprecated. Use
scrPatchFunction.")));
int scrRun(const scrOptions *options, scrStats *stats) SCR_EXPORT
Runs all of the tests.
unsigned int num_passed
Definition: run.h:64
void scrTestFn(void)
The signature for a test function.
Definition: run.h:22
unsigned int num_failed
Definition: run.h:66
unsigned int num_errored
Definition: run.h:68
struct scrGroupOptions scrGroupOptions
Options to pass to scrGroupCreate.
unsigned int timeout
Definition: run.h:28
scrGroup scrGroupCreate(const scrGroupOptions *options) SCR_EXPORT
Creates a new test group.
Holds the test results.
Definition: run.h:63
unsigned int num_skipped
Definition: run.h:65
void * global_ctx
Definition: run.h:56
unsigned int flags
Definition: run.h:57
struct scrTestOptions scrTestOptions
Options to pass to scrAddTest.
void scrCtxCleanupFn(void *)
The signature for a group context cleanup function.
Definition: run.h:42
size_t scrGroup
A representation of a testing group.
Definition: run.h:16
void * scrCtxCreateFn(void *)
The signature for a group context creation function.
Definition: run.h:36
unsigned int flags
Definition: run.h:29
bool scrPatchFunction(scrGroup group, const char *func_name, const char *file_substring, void *new_func) SCR_EXPORT SCR_NONNULL(2
Enables monkeypatching of a function for all of a group's tests.
Options to pass to scrAddTest.
Definition: run.h:27
Options to pass to scrRun.
Definition: run.h:55
struct scrStats scrStats
Holds the test results.
void scrAddTest(scrGroup group, const char *name, scrTestFn test_fn, const scrTestOptions *options) SCR_EXPORT SCR_NONNULL(2
Adds a test to a group.
Options to pass to scrGroupCreate.
Definition: run.h:47
struct scrOptions scrOptions
Options to pass to scrRun.