Set license using %license
[platform/upstream/libical.git] / src / test / regression.h
1 #ifdef  __cplusplus
2 extern "C" {
3 #endif
4
5 #define ADD_TESTS_REQUIRING_INVESTIGATION 0
6
7 extern int VERBOSE;
8 extern int QUIET;
9
10 /* regression-component.c */
11 void create_new_component(void);
12 void create_new_component_with_va_args(void);
13 void create_simple_component(void);
14 void test_icalcomponent_get_span(void);
15 void create_new_component_with_va_args(void);
16
17 /* regression-classify.c */
18 void test_classify(void);
19
20 /* regression-recur.c */
21 void test_recur_file(void);
22
23 /* regression-cxx.c */
24 void test_cxx(void);
25
26 /* regression-storage.c */
27 void test_fileset_extended(void);
28 void test_dirset_extended(void);
29 void test_bdbset(void);
30
31 /* regression-utils.c */
32 const char* ical_timet_string(const time_t t);
33 const char* ictt_as_string(struct icaltimetype t);
34 char* icaltime_as_ctime(struct icaltimetype t);
35
36
37 void _ok(char*name, int result, char*file, int linenum, char *test);
38 void _is(char* test_name, const char* str1, const char* str2, char *file, int linenum);
39 void _int_is(char* test_name, int i1, int i2, char *file, int linenum);
40 #define ok(TEST, EX) (_ok(TEST, EX, __FILE__, __LINE__, #EX))
41 #define is(S1, S2, EX) (_is(S1, S2, EX, __FILE__, __LINE__))
42 #define int_is(I1, I2, EX) (_int_is(I1, I2, EX, __FILE__, __LINE__))
43 void test_header(char*title, int test_set);
44 void test_start(int);
45 void test_end(void);
46 void test_run(char *test_name, 
47               void (*test_fcn)(void), 
48               int do_test, int headeronly);
49
50
51
52
53 #ifdef  __cplusplus
54 }
55 #endif