05f273a72bf6102317533a32e341df1eecaf31e4
[m6w6/libmemcached] / libtest / common.h
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 Common include file for libtest
24 */
25
26 #pragma once
27
28 #include <cassert>
29 #include <cerrno>
30 #include <cstdlib>
31 #include <sstream>
32 #include <string>
33
34 #ifdef HAVE_SYS_TYPES_H
35 #include <sys/types.h>
36 #endif
37
38 #ifdef HAVE_SYS_TIME_H
39 #include <sys/time.h>
40 #endif
41
42 #ifdef HAVE_SYS_WAIT_H
43 #include <sys/wait.h>
44 #endif
45
46 #ifdef HAVE_SYS_RESOURCE_H
47 #include <sys/resource.h>
48 #endif
49
50 #ifdef HAVE_FNMATCH_H
51 #include <fnmatch.h>
52 #endif
53
54 #include <libtest/test.hpp>
55
56 #include <libtest/is_pid.hpp>
57
58 #include <libtest/gearmand.h>
59 #include <libtest/blobslap_worker.h>
60 #include <libtest/memcached.h>
61
62 #include <libtest/libtool.hpp>
63 #include <libtest/killpid.h>
64 #include <libtest/stats.h>
65 #include <libtest/signal.h>
66