doc
|
00001 #ifndef _SUPPORT_H 00002 #define _SUPPORT_H 00003 00004 #ifndef _GNU_SOURCE 00005 #define _GNU_SOURCE 00006 #endif 00007 00008 #include <stdio.h> 00009 #include <stdlib.h> 00010 #include <check.h> 00011 00012 #include "csync_private.h" 00013 00014 /* Used by main to communicate with parse_opt. */ 00015 struct argument_s { 00016 char *args[2]; /* SOURCE and DESTINATION */ 00017 int nofork; 00018 }; 00019 00020 void cmdline_parse(int argc, char **argv, struct argument_s *arguments); 00021 00022 /* create_case() with timeout of 30seconds (default) */ 00023 void create_case(Suite *s, const char *name, TFun function); 00024 00025 /* create_case() with timeout of 30seconds (default) and fixture */ 00026 void create_case_fixture(Suite *s, const char *name, TFun function, 00027 void (*setup)(void), void (*teardown)(void)); 00028 00029 /* 00030 * create_case_timeout() allow to specific a specific timeout - intended for 00031 * breaking testcases which needs longer then 30seconds (default) 00032 */ 00033 void create_case_timeout(Suite *s, const char *name, TFun function, 00034 int timeout); 00035 00036 #endif /* _SUPPORT_H */