/* This file is part of the Zebra server.
- Copyright (C) 1994-2010 Index Data
+ Copyright (C) 1994-2011 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
/** Create many databases */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include "testlib.h"
static void tst(int argc, char **argv)
zh = zebra_open(zs, 0);
YAZ_CHECK(zh);
-
+
YAZ_CHECK(zebra_begin_trans (zh, 1) == ZEBRA_OK);
for (i = 0; i<no_db; i++)
sprintf(dbstr, "%d", i);
YAZ_CHECK(zebra_select_database(zh, dbstr) == ZEBRA_OK);
-
+
sprintf(rec_buf, "<gils><title>title %d</title></gils>\n", i);
zebra_add_record (zh, rec_buf, strlen(rec_buf));