Update libtest/fedora/lion fixes
[m6w6/libmemcached] / libtest / test.hpp
1 /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
2 *
3 * libtest
4 *
5 * Copyright (C) 2011 Data Differential, http://datadifferential.com/
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 3 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22
23 /*
24 Structures for generic tests.
25 */
26
27 #include <cstdio>
28 #include <cstdlib>
29 #include <stdint.h>
30 #include <arpa/inet.h>
31
32 #include <libtest/visibility.h>
33
34 #include <libtest/error.h>
35 #include <libtest/server.h>
36 #include <libtest/wait.h>
37 #include <libtest/callbacks.h>
38 #include <libtest/test.h>
39 #include <libtest/strerror.h>
40 #include <libtest/core.h>
41 #include <libtest/runner.h>
42 #include <libtest/stats.h>
43 #include <libtest/collection.h>
44 #include <libtest/framework.h>
45 #include <libtest/get.h>
46 #include <libtest/stream.h>
47 #include <libtest/cmdline.h>
48 #include <libtest/string.hpp>
49
50 #pragma once
51
52 LIBTEST_API
53 in_port_t default_port();
54
55 LIBTEST_API
56 void set_default_port(in_port_t port);
57
58 LIBTEST_API
59 const char* default_socket();
60
61 LIBTEST_API
62 void set_default_socket(const char *socket);
63
64 LIBTEST_API
65 bool test_is_local(void);