2
0

testutil.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
  2. * applicable.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * 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. #include "apr_pools.h"
  17. #include "abts.h"
  18. #ifndef APR_TEST_UTIL
  19. #define APR_TEST_UTIL
  20. /* XXX FIXME */
  21. #ifdef WIN32
  22. #define EXTENSION ".exe"
  23. #elif NETWARE
  24. #define EXTENSION ".nlm"
  25. #else
  26. #define EXTENSION
  27. #endif
  28. #define STRING_MAX 8096
  29. /* Some simple functions to make the test apps easier to write and
  30. * a bit more consistent...
  31. */
  32. extern apr_pool_t *p;
  33. /* Assert that RV is an APR_SUCCESS value; else fail giving strerror
  34. * for RV and CONTEXT message. */
  35. void apr_assert_success(abts_case* tc, const char *context, apr_status_t rv);
  36. void initialize(void);
  37. abts_suite *teststrmatch(abts_suite *suite);
  38. abts_suite *testuri(abts_suite *suite);
  39. abts_suite *testuuid(abts_suite *suite);
  40. abts_suite *testbuckets(abts_suite *suite);
  41. abts_suite *testpass(abts_suite *suite);
  42. abts_suite *testmd4(abts_suite *suite);
  43. abts_suite *testmd5(abts_suite *suite);
  44. abts_suite *testldap(abts_suite *suite);
  45. abts_suite *testdbd(abts_suite *suite);
  46. #endif /* APR_TEST_INCLUDES */