mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
7b6be113ea
This adds a simple possibility to run the test not in the fork mode.
32 lines
900 B
C
32 lines
900 B
C
#ifndef _SUPPORT_H
|
|
#define _SUPPORT_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <check.h>
|
|
|
|
#include "csync_private.h"
|
|
|
|
/* Used by main to communicate with parse_opt. */
|
|
struct argument_s {
|
|
char *args[2]; /* SOURCE and DESTINATION */
|
|
int nofork;
|
|
};
|
|
|
|
void cmdline_parse(int argc, char **argv, struct argument_s *arguments);
|
|
|
|
/* create_case() with timeout of 30seconds (default) */
|
|
void create_case(Suite *s, const char *name, TFun function);
|
|
|
|
/* create_case() with timeout of 30seconds (default) and fixture */
|
|
void create_case_fixture(Suite *s, const char *name, TFun function,
|
|
void (*setup)(void), void (*teardown)(void));
|
|
|
|
/*
|
|
* create_case_timeout() allow to specific a specific timeout - intended for
|
|
* breaking testcases which needs longer then 30seconds (default)
|
|
*/
|
|
void create_case_timeout(Suite *s, const char *name, TFun function,
|
|
int timeout);
|
|
|
|
#endif /* _SUPPORT_H */
|