Apache HTTPD
testutil.h
Go to the documentation of this file.
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17#include "apr_pools.h"
18#include "abts.h"
19
20#ifndef APR_TEST_UTIL
21#define APR_TEST_UTIL
22
23/* XXX FIXME */
24#ifdef WIN32
25#define EXTENSION ".exe"
26#elif NETWARE
27#define EXTENSION ".nlm"
28#else
29#define EXTENSION
30#endif
31
32#define STRING_MAX 8096
33
34/* Some simple functions to make the test apps easier to write and
35 * a bit more consistent...
36 */
37
38extern apr_pool_t *p;
39
40/* Assert that RV is an APR_SUCCESS value; else fail giving strerror
41 * for RV and CONTEXT message. */
42void apr_assert_success(abts_case* tc, const char *context, apr_status_t rv);
43
44void apr_assert_failure(abts_case* tc, const char *context,
45 apr_status_t rv, int lineno);
46#define APR_ASSERT_FAILURE(tc, ctxt, rv) \
47 apr_assert_failure(tc, ctxt, rv, __LINE__)
48
49
50void initialize(void);
51
72
73#endif /* APR_TEST_INCLUDES */
abts_suite * testcrypto(abts_suite *suite)
abts_suite * teststrmatch(abts_suite *suite)
abts_suite * testrmm(abts_suite *suite)
Definition testrmm.c:182
abts_suite * testxlate(abts_suite *suite)
Definition testxlate.c:125
abts_suite * testdate(abts_suite *suite)
Definition testdate.c:194
void apr_assert_success(abts_case *tc, const char *context, apr_status_t rv)
Definition testutil.c:26
abts_suite * testpass(abts_suite *suite)
Definition testpass.c:199
abts_suite * testqueue(abts_suite *suite)
Definition testqueue.c:126
abts_suite * testredis(abts_suite *suite)
Definition testredis.c:528
abts_suite * testsiphash(abts_suite *suite)
void initialize(void)
Definition testutil.c:42
abts_suite * testmd5(abts_suite *suite)
Definition testmd5.c:93
abts_suite * testreslist(abts_suite *suite)
abts_suite * testdbm(abts_suite *suite)
Definition testdbm.c:203
abts_suite * testuri(abts_suite *suite)
Definition testuri.c:322
abts_suite * testbuckets(abts_suite *suite)
abts_suite * testmd4(abts_suite *suite)
Definition testmd4.c:110
void apr_assert_failure(abts_case *tc, const char *context, apr_status_t rv, int lineno)
Definition testutil.c:40
abts_suite * testldap(abts_suite *suite)
Definition testldap.c:233
abts_suite * testxml(abts_suite *suite)
Definition testxml.c:195
abts_suite * testdbd(abts_suite *suite)
Definition testdbd.c:230
abts_suite * testmemcache(abts_suite *suite)
abts_suite * testuuid(abts_suite *suite)
Definition testuuid.c:48
APR memory allocation.
apr_md5_ctx_t * context
Definition util_md5.h:58
apr_pool_t * p
Definition md_event.c:32
int apr_status_t
Definition apr_errno.h:44