Makefile: Add target to run sql-dependant tests
[nagios-reports-module.git] / test_utils.h
blob079c91b20db5b77a82f62d9e979d54ef723d360b
1 #ifndef INCLUDE_test_utils_h__
2 #define INCLUDE_test_utils_h__
3 #define TEST_PASS 0
4 #define TEST_FAIL 1
6 typedef unsigned int uint;
7 extern const char *red, *green, *yellow, *cyan, *reset;
8 extern uint passed, failed, t_verbose;
9 extern void t_set_colors(int force);
10 extern void t_start(const char *fmt, ...)
11 __attribute__((__format__(__printf__, 1, 2)));
12 extern void t_pass(const char *fmt, ...)
13 __attribute__((__format__(__printf__, 1, 2)));
14 extern void t_fail(const char *fmt, ...)
15 __attribute__((__format__(__printf__, 1, 2)));
16 extern void t_diag(const char *fmt, ...)
17 __attribute__((__format__(__printf__, 1, 2)));
18 extern int ok_int(int a, int b, const char *name);
19 extern int ok_uint(uint a, uint b, const char *name);
20 extern int ok_str(const char *a, const char *b, const char *name);
21 extern int t_end(void);
22 extern void crash(const char *fmt, ...)
23 __attribute__((__format__(__printf__, 1, 2), __noreturn__));
24 #endif