X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftst_retrieval.c;h=7a2561bd1e78f302c747115718da1b0436b999e6;hb=67471e87c134f2503546cdd250cd169b7d43d566;hp=aecb773808a8e8931678a97e1c3ae73e538d88ec;hpb=0de95154d8512ee46d6b706fe019f8d1ffc18827;p=yaz-moved-to-github.git diff --git a/test/tst_retrieval.c b/test/tst_retrieval.c index aecb773..7a2561b 100644 --- a/test/tst_retrieval.c +++ b/test/tst_retrieval.c @@ -2,19 +2,21 @@ * Copyright (C) 2005-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: tst_retrieval.c,v 1.2 2006-05-05 18:37:08 adam Exp $ + * $Id: tst_retrieval.c,v 1.7 2006-10-04 16:59:34 mike Exp $ * */ #include #include #include #include +#include +#include #if HAVE_CONFIG_H #include #endif -#if HAVE_XSLT +#if YAZ_HAVE_XSLT #include #include @@ -102,7 +104,7 @@ int conv_configure_test(const char *xmlstring, const char *expect_error, return ret; } -static void tst_configure() +static void tst_configure(void) { YAZ_CHECK(conv_configure_test("" + "", + "Missing 'syntax' attribute", 0)); + YAZ_CHECK(conv_configure_test("" - "" + "\n" + " " "" "" "" - "" + "" "" "" "" "" "" - "" + "" "" "" "" "", 0, 0)); + + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + 0, 0)); + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + 0, 0)); + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + "Bad attribute 'backendschema'." + " Use 'backendname' instead", + 0)); + + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + "Bad syntax 'unknown_synt'", 0)); + + YAZ_CHECK(conv_configure_test("" + "" + "" + "" + "", + "Bad backendsyntax 'unknown_synt'", 0)); + } #endif @@ -163,7 +230,10 @@ static void tst_configure() int main(int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); -#if HAVE_XSLT + + libxml2_error_to_yazlog(0 /* disable it */, ""); + +#if YAZ_HAVE_XSLT tst_configure(); #endif YAZ_CHECK_TERM;