From: Wolfram Schneider Date: Mon, 12 Apr 2010 12:27:48 +0000 (+0000) Subject: add a test database for developing X-Git-Tag: CPAN-v1.02~148^2~17 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=e254164330c6f7611d8ff59c4ccbbc4d3ae064f3 add a test database for developing --- diff --git a/zebra/Makefile b/zebra/Makefile index be9f20e..1d4fe1e 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -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 ]" diff --git a/zebra/zebra-test.cfg b/zebra/zebra-test.cfg index 4e161a1..6169c28 100644 --- a/zebra/zebra-test.cfg +++ b/zebra/zebra-test.cfg @@ -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 diff --git a/zebra/zeerex-test.xml b/zebra/zeerex-test.xml index abd8de0..95a25c1 100644 --- a/zebra/zeerex-test.xml +++ b/zebra/zeerex-test.xml @@ -4,8 +4,8 @@ localhost - 8018 - IR-Explain---1 + 8019 + IR-Explain---2