Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / libtest / test.h
blobe78a98c719208e547d7159daf42cba0b61001619
1 /*****************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * $Id: test.h,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
9 */
11 /* Now include the setup.h file from libcurl's private libdir (the source
12 version, but that might include "config.h" from the build dir so we need
13 both of them in the include path), so that we get good in-depth knowledge
14 about the system we're building this on */
16 #include "setup.h"
18 #include <curl/curl.h>
19 #include <stdio.h>
20 #include <string.h>
21 #include <stdlib.h>
22 #include <errno.h>
24 #ifdef HAVE_SYS_SOCKET_H
25 #include <sys/socket.h>
26 #endif
27 #ifdef HAVE_SYS_SELECT_H
28 /* since so many tests use select(), we can just as well include it here */
29 #include <sys/select.h>
30 #endif
31 #ifdef HAVE_UNISTD_H
32 /* at least somewhat oldish FreeBSD systems need this for select() */
33 #include <unistd.h>
34 #endif
36 #define TEST_ERR_MAJOR_BAD 100
37 #define TEST_ERR_RUNS_FOREVER 99
39 extern char *libtest_arg2; /* set by first.c to the argv[2] or NULL */
40 extern char *libtest_arg3; /* set by first.c to the argv[3] or NULL */
42 /* argc and argv as passed in to the main() function */
43 extern int test_argc;
44 extern char **test_argv;
46 int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc,
47 struct timeval *tv);
49 int test(char *URL); /* the actual test function provided by each individual
50 libXXX.c file */