Apache Portable Runtime Utility Library
test/testutil.h
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #include "apr_pools.h"
00018 #include "abts.h"
00019 
00020 #ifndef APR_TEST_UTIL
00021 #define APR_TEST_UTIL
00022 
00023 /* XXX FIXME */
00024 #ifdef WIN32
00025 #define EXTENSION ".exe"
00026 #elif NETWARE
00027 #define EXTENSION ".nlm"
00028 #else
00029 #define EXTENSION
00030 #endif
00031 
00032 #define STRING_MAX 8096
00033 
00034 /* Some simple functions to make the test apps easier to write and
00035  * a bit more consistent...
00036  */
00037 
00038 extern apr_pool_t *p;
00039 
00040 /* Assert that RV is an APR_SUCCESS value; else fail giving strerror
00041  * for RV and CONTEXT message. */
00042 void apr_assert_success(abts_case* tc, const char *context, apr_status_t rv);
00043 
00044 void initialize(void);
00045 
00046 abts_suite *teststrmatch(abts_suite *suite);
00047 abts_suite *testuri(abts_suite *suite);
00048 abts_suite *testuuid(abts_suite *suite);
00049 abts_suite *testbuckets(abts_suite *suite);
00050 abts_suite *testpass(abts_suite *suite);
00051 abts_suite *testmd4(abts_suite *suite);
00052 abts_suite *testmd5(abts_suite *suite);
00053 abts_suite *testcrypto(abts_suite *suite);
00054 abts_suite *testldap(abts_suite *suite);
00055 abts_suite *testdbd(abts_suite *suite);
00056 abts_suite *testdate(abts_suite *suite);
00057 abts_suite *testmemcache(abts_suite *suite);
00058 abts_suite *testreslist(abts_suite *suite);
00059 abts_suite *testqueue(abts_suite *suite);
00060 abts_suite *testxml(abts_suite *suite);
00061 abts_suite *testxlate(abts_suite *suite);
00062 abts_suite *testrmm(abts_suite *suite);
00063 abts_suite *testdbm(abts_suite *suite);
00064 
00065 #endif /* APR_TEST_INCLUDES */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines