-/* $Id: t3.c,v 1.10 2004-10-15 10:07:34 heikki Exp $
+/* $Id: t3.c,v 1.11 2004-10-28 15:24:36 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
#include <yaz/log.h>
#include <yaz/pquery.h>
#include <idzebra/api.h>
+#include "testlib.h"
-/* read zebra.cfg from env var srcdir if it exists; otherwise current dir */
-static ZebraService start_service()
-{
- char cfg[256];
- char *srcdir = getenv("srcdir");
- sprintf(cfg, "%.200s%szebra.cfg", srcdir ? srcdir : "", srcdir ? "/" : "");
- return zebra_start(cfg);
-}
int main(int argc, char **argv)
{
nmem_init ();
- zs = start_service();
+ zs = start_service(0);
zh = zebra_open (zs);
zebra_select_database(zh, "Default");
zebra_init(zh);
zebra_end_trans (zh);
yaz_pqf_destroy(parser);
#if 0
+ /*FIXME Why is this disabled ??? */
zebra_records_retrieve (zh, odr_output, setname, 0,
VAL_TEXT_XML, 1, &retrievalRecord);
#endif
nmem_exit ();
xmalloc_trav ("x");
+ logf(LOG_LOG,"================ All tests OK ");
exit (0);
}