add a test database for developing
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 12 Apr 2010 12:27:48 +0000 (12:27 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 12 Apr 2010 12:27:48 +0000 (12:27 +0000)
zebra/Makefile
zebra/zebra-test.cfg
zebra/zeerex-test.xml

index be9f20e..1d4fe1e 100644 (file)
@@ -4,6 +4,9 @@ IRSPY_ARCHIVE_EXT=      .tar.gz
 DUMP_DIR=              irspy-dump
 ZEBRA_DIR=             db
 
+# debugging
+ZEBRA_TEST_DIR=                db-test
+
 DATE:= $(shell date '+%Y-%m-%d')
 
 all: help
@@ -23,6 +26,14 @@ newdb:
        zebraidx-2.0 update ${IRSPY_ARCHIVE}
        zebraidx-2.0 commit
 
+newdb-test:
+       tar xzf ${DUMP_DIR}/${IRSPY_ARCHIVE}${IRSPY_ARCHIVE_EXT}
+       mkdir -p ${ZEBRA_TEST_DIR}/lock ${ZEBRA_TEST_DIR}/register ${ZEBRA_TEST_DIR}/shadow ${ZEBRA_TEST_DIR}/tmp
+       zebraidx-2.0 init
+       zebraidx-2.0 update zeerex-test.xml
+       zebraidx-2.0 update ${IRSPY_ARCHIVE}
+       zebraidx-2.0 commit
+
 dump:
        rm -rf records-${DATE}.old
        -test -e records-${DATE} && mv records-${DATE} records-${DATE}.old
@@ -34,8 +45,8 @@ clean:
        rm -f terse.properties
 
 distclean: clean
-       rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR}
+       rm -rf ${IRSPY_ARCHIVE} ${ZEBRA_DIR} ${ZEBRA_DIR}
 
 help:
-       @echo "make [ dump | test | newdb | clean | distclean ]"
+       @echo "make [ dump | test | newdb | newdb-test | clean | distclean ]"
 
index 4e161a1..6169c28 100644 (file)
@@ -16,14 +16,14 @@ storeKeys: 1
 # Use the "alvis" filter with config file "filterconf.xml"
 recordtype: alvis.filterconf.xml
 
-database: IR-Explain---1
+database: IR-Explain---2
 #database: Default
 
 # where to put registers, and other var content, and how large they may be
-register: db/register:100G
-shadow: db/shadow:100G
-lockdir: db/lock
-keytmpdir: db/tmp
+register: db-test/register:100G
+shadow: db-test/shadow:100G
+lockdir: db-test/lock
+keytmpdir: db-test/tmp
 
 # Permissions for update
 perm.anonymous: ra
index abd8de0..95a25c1 100644 (file)
@@ -4,8 +4,8 @@
 
  <serverInfo protocol="SRW/SRU/Z39.50" version="1.1" method="GET/POST">
   <host>localhost</host>
-  <port>8018</port>
-  <database>IR-Explain---1</database>
+  <port>8019</port>
+  <database>IR-Explain---2</database>
  </serverInfo>
 
  <databaseInfo>