From b4a743f2f07e693a8863c99c670668db35b0ddbe Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 2 Dec 2004 17:43:04 +0000 Subject: [PATCH] Do not use sub directories for test. --- test/sort/.cvsignore | 8 +++----- test/sort/sort1.c | 11 +++++++---- test/sort/zebra.cfg | 4 +--- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/test/sort/.cvsignore b/test/sort/.cvsignore index 5e29264..da6483c 100644 --- a/test/sort/.cvsignore +++ b/test/sort/.cvsignore @@ -4,9 +4,7 @@ zebrasrv.pid Makefile tmp? -reg -lock -recs -shadow -socket *.log +.libs +.deps +sort1 diff --git a/test/sort/sort1.c b/test/sort/sort1.c index 6b09f25..b344529 100644 --- a/test/sort/sort1.c +++ b/test/sort/sort1.c @@ -1,4 +1,4 @@ -/* $Id: sort1.c,v 1.1 2004-12-02 15:02:52 adam Exp $ +/* $Id: sort1.c,v 1.2 2004-12-02 17:43:04 adam Exp $ Copyright (C) 2003,2004 Index Data Aps @@ -28,15 +28,18 @@ int main(int argc, char **argv) ZebraHandle zh = zebra_open(zs); ZebraMetaRecord *recs; char path[256]; - int errs = 0; + int i, errs = 0; zebra_select_database(zh, "Default"); zebra_init(zh); zebra_begin_trans(zh, 1); - sprintf(path, "%.200s/recs", get_srcdir()); - zebra_repository_update(zh, path); + for (i = 1; i <= 4; i++) + { + sprintf(path, "%.200s/rec%d.xml", get_srcdir(), i); + zebra_repository_update(zh, path); + } zebra_end_trans(zh); zebra_commit(zh); diff --git a/test/sort/zebra.cfg b/test/sort/zebra.cfg index 390d228..61a38ee 100644 --- a/test/sort/zebra.cfg +++ b/test/sort/zebra.cfg @@ -1,5 +1,5 @@ # Simple Zebra configuration file -# $Id: zebra.cfg,v 1.3 2004-07-28 09:47:41 adam Exp $ +# $Id: zebra.cfg,v 1.4 2004-12-02 17:43:04 adam Exp $ # # Where the schema files, attribute files, etc are located. profilePath: ${srcdir:-.}:${srcdir:-.}/../../tab @@ -9,6 +9,4 @@ attset: bib1.att attset: explain.att recordtype.xml: grs.sgml -lockdir: lock -register: reg:20M isam: b -- 1.7.10.4