Main Page | Modules | Namespace List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

testutil.h

00001 /* Copyright 2000-2004 The Apache Software Foundation
00002  *
00003  * Licensed under the Apache License, Version 2.0 (the "License");
00004  * you may not use this file except in compliance with the License.
00005  * You may obtain a copy of the License at
00006  *
00007  *     http://www.apache.org/licenses/LICENSE-2.0
00008  *
00009  * Unless required by applicable law or agreed to in writing, software
00010  * distributed under the License is distributed on an "AS IS" BASIS,
00011  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012  * See the License for the specific language governing permissions and
00013  * limitations under the License.
00014  */
00015 
00016 #include "apr_pools.h"
00017 #include "abts.h"
00018 
00019 #ifndef APR_TEST_UTIL
00020 #define APR_TEST_UTIL
00021 
00022 /* XXX FIXME */
00023 #ifdef WIN32
00024 #define EXTENSION ".exe"
00025 #elif NETWARE
00026 #define EXTENSION ".nlm"
00027 #else
00028 #define EXTENSION
00029 #endif
00030 
00031 #define STRING_MAX 8096
00032 
00033 /* Some simple functions to make the test apps easier to write and
00034  * a bit more consistent...
00035  */
00036 
00037 extern apr_pool_t *p;
00038 
00039 /* Assert that RV is an APR_SUCCESS value; else fail giving strerror
00040  * for RV and CONTEXT message. */
00041 void apr_assert_success(abts_case* tc, const char *context, apr_status_t rv);
00042 
00043 void initialize(void);
00044 
00045 abts_suite *teststrmatch(abts_suite *suite);
00046 abts_suite *testuri(abts_suite *suite);
00047 abts_suite *testuuid(abts_suite *suite);
00048 abts_suite *testbuckets(abts_suite *suite);
00049 abts_suite *testpass(abts_suite *suite);
00050 abts_suite *testmd4(abts_suite *suite);
00051 abts_suite *testmd5(abts_suite *suite);
00052 abts_suite *testldap(abts_suite *suite);
00053 
00054 #endif /* APR_TEST_INCLUDES */

Generated on Thu Sep 8 12:20:49 2005 for Apache Portable Runtime Utility Library by  doxygen 1.4.4