1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef APR_TEST_INCLUDES
18 #define APR_TEST_INCLUDES
21 #include "apr_pools.h"
23 /* Some simple functions to make the test apps easier to write and
24 * a bit more consistent...
29 CuSuite *getsuite(void);
31 CuSuite *teststr(void);
32 CuSuite *testtime(void);
33 CuSuite *testvsn(void);
34 CuSuite *testipsub(void);
35 CuSuite *testmmap(void);
36 CuSuite *testud(void);
37 CuSuite *testtable(void);
38 CuSuite *testhash(void);
39 CuSuite *testsleep(void);
40 CuSuite *testpool(void);
41 CuSuite *testfmt(void);
42 CuSuite *testfile(void);
43 CuSuite *testdir(void);
44 CuSuite *testfileinfo(void);
45 CuSuite *testrand(void);
46 CuSuite *testdso(void);
47 CuSuite *testoc(void);
48 CuSuite *testdup(void);
49 CuSuite *testsockets(void);
50 CuSuite *testproc(void);
51 CuSuite *testprocmutex(void);
52 CuSuite *testpoll(void);
53 CuSuite *testlock(void);
54 CuSuite *testsockopt(void);
55 CuSuite *testpipe(void);
56 CuSuite *testthread(void);
57 CuSuite *testgetopt(void);
58 CuSuite *testnames(void);
59 CuSuite *testuser(void);
60 CuSuite *testpath(void);
61 CuSuite *testenv(void);
63 /* Assert that RV is an APR_SUCCESS value; else fail giving strerror
64 * for RV and CONTEXT message. */
65 void apr_assert_success(CuTest* tc, const char *context, apr_status_t rv);
68 #endif /* APR_TEST_INCLUDES */