meson: drop defining BIGREQS
[xserver.git] / test / tests.h
blobd04d6ea63eabc74790714afedc26da175b9b2f78
1 #ifndef TESTS_H
2 #define TESTS_H
4 extern int verbose;
5 #define dbg(...) if (verbose) printf("DBG" __VA_ARGS__);
7 #define DECLARE_WRAP_FUNCTION(f_, rval_, ...) \
8 extern rval_ (*wrapped_ ## f_)(__VA_ARGS__) \
10 #define IMPLEMENT_WRAP_FUNCTION(f_, ...) \
11 if (wrapped_ ## f_) wrapped_ ## f_(__VA_ARGS__); \
12 else __real_ ## f_(__VA_ARGS__)
14 #define IMPLEMENT_WRAP_FUNCTION_WITH_RETURN(f_, ...) \
15 if (wrapped_ ## f_) return wrapped_ ## f_(__VA_ARGS__); \
16 else return __real_ ## f_(__VA_ARGS__)
18 #define WRAP_FUNCTION(f_, rval_, ...) \
19 rval_ (*wrapped_ ## f_)(__VA_ARGS__); \
20 extern rval_ __real_ ## f_(__VA_ARGS__); \
21 rval_ __wrap_ ## f_(__VA_ARGS__); \
22 rval_ __wrap_ ## f_(__VA_ARGS__)
24 typedef void (*testfunc_t)(void);
26 const testfunc_t* fixes_test(void);
27 const testfunc_t* hashtabletest_test(void);
28 const testfunc_t* input_test(void);
29 const testfunc_t* list_test(void);
30 const testfunc_t* misc_test(void);
31 const testfunc_t* signal_logging_test(void);
32 const testfunc_t* string_test(void);
33 const testfunc_t* touch_test(void);
34 const testfunc_t* xfree86_test(void);
35 const testfunc_t* xkb_test(void);
36 const testfunc_t* xtest_test(void);
37 const testfunc_t* protocol_xchangedevicecontrol_test(void);
38 const testfunc_t* protocol_xiqueryversion_test(void);
39 const testfunc_t* protocol_xiquerydevice_test(void);
40 const testfunc_t* protocol_xiselectevents_test(void);
41 const testfunc_t* protocol_xigetselectedevents_test(void);
42 const testfunc_t* protocol_xisetclientpointer_test(void);
43 const testfunc_t* protocol_xigetclientpointer_test(void);
44 const testfunc_t* protocol_xipassivegrabdevice_test(void);
45 const testfunc_t* protocol_xiquerypointer_test(void);
46 const testfunc_t* protocol_xiwarppointer_test(void);
47 const testfunc_t* protocol_eventconvert_test(void);
48 const testfunc_t* xi2_test(void);
50 #endif /* TESTS_H */