/* Copyright 2005 The Apache Software Foundation or its licensors, as * applicable. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef LCN_TEST_H #define LCN_TEST_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include #include #include "lcn_types.h" #include "abts.h" apr_pool_t *p; #define CHK_ERR(expr) do { \ lcn_error_t *lcn__err = expr; \ ABTS_PTR_EQUAL (tc, LCN_NO_ERROR, lcn__err); \ if (lcn__err) \ { \ printf ("err = %d: %s\n", \ lcn__err->apr_err, \ lcn__err->message); \ return; \ } \ } while (0) void initialize (void); abts_suite *test_istream (abts_suite *); abts_suite *test_directory (abts_suite *); abts_suite *test_segments (abts_suite *); abts_suite *test_segment (abts_suite *); abts_suite *test_fieldinfos (abts_suite *); abts_suite *test_fielddata (abts_suite *); abts_suite *test_terminfos (abts_suite *); abts_suite *test_frequencies (abts_suite *); abts_suite *test_index (abts_suite *); abts_suite *test_string (abts_suite *); abts_suite *test_scorer (abts_suite *); abts_suite *test_query_parser (abts_suite *); #ifdef __cplusplus } #endif /* __cplusplus */ #endif