1
1
libssh/tests/torture.h
Aris Adamantiadis 2917e71aad Replaced argp support for platforms that support it
Argp is really useful, but it's not mandatory.
2011-01-13 18:34:04 +01:00

36 строки
614 B
C

#ifndef _TORTURE_H
#define _TORTURE_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <google/cmockery.h>
/* Used by main to communicate with parse_opt. */
struct argument_s {
char *args[2];
int verbose;
};
void torture_cmdline_parse(int argc, char **argv, struct argument_s *arguments);
/*
* Returns the verbosity level asked by user
*/
int torture_libssh_verbosity(void);
/*
* This function must be defined in every unit test file.
*/
int torture_run_tests(void);
#endif /* _TORTURE_H */