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 52abts_suite *teststrmatch(abts_suite *suite); 53abts_suite *testuri(abts_suite *suite); 54abts_suite *testuuid(abts_suite *suite); 55abts_suite *testbuckets(abts_suite *suite); 56abts_suite *testpass(abts_suite *suite); 57abts_suite *testmd4(abts_suite *suite); 58abts_suite *testmd5(abts_suite *suite); 59abts_suite *testcrypto(abts_suite *suite); 60abts_suite *testldap(abts_suite *suite); 61abts_suite *testdbd(abts_suite *suite); 62abts_suite *testdate(abts_suite *suite); 63abts_suite *testmemcache(abts_suite *suite); 64abts_suite *testreslist(abts_suite *suite); 65abts_suite *testqueue(abts_suite *suite); 66abts_suite *testxml(abts_suite *suite); 67abts_suite *testxlate(abts_suite *suite); 68abts_suite *testrmm(abts_suite *suite); 69abts_suite *testdbm(abts_suite *suite); 70 71#endif /* APR_TEST_INCLUDES */ 72