doc
torture.h
Go to the documentation of this file.
1 #ifndef _TORTURE_H
2 #define _TORTURE_H
3 
4 #include <stdarg.h>
5 #include <stddef.h>
6 #include <setjmp.h>
7 
8 #include <cmocka.h>
9 
10 /* Used by main to communicate with parse_opt. */
11 struct argument_s {
12  char *args[2];
13  int verbose;
14 };
15 
16 void torture_cmdline_parse(int argc, char **argv, struct argument_s *arguments);
17 
18 int torture_csync_verbosity(void);
19 
20 /*
21  * This function must be defined in every unit test file.
22  */
23 int torture_run_tests(void);
24 
25 #endif /* _TORTURE_H */
int torture_csync_verbosity(void)
char * args[2]
Definition: torture.h:12
void torture_cmdline_parse(int argc, char **argv, struct argument_s *arguments)
int torture_run_tests(void)
int verbose
Definition: torture.h:13