From: Heikki Levanto Date: Thu, 21 Aug 2003 10:40:44 +0000 (+0000) Subject: Added two test scripts X-Git-Tag: ZEBRA.1.3.12~13 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=e8ddf3796d9ff4fe1eac68c613a68a40e1390bce;hp=40d5411e09bb369d361c48b68e3b57c4557f6d4c;p=idzebra-moved-to-github.git Added two test scripts --- diff --git a/test/zsh/Makefile.am b/test/zsh/Makefile.am index ce41508..caaf60d 100644 --- a/test/zsh/Makefile.am +++ b/test/zsh/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.1 2003-07-04 14:25:51 heikki Exp $ +# $Id: Makefile.am,v 1.2 2003-08-21 10:40:44 heikki Exp $ #dist-hook: # -mkdir $(distdir)/records @@ -9,5 +9,5 @@ check_SCRIPTS = testall.sh TESTS = testall.sh -EXTRA_DIST = test1.zsh zebra.cfg +EXTRA_DIST = test1.zsh test2.zsh zebra.cfg diff --git a/test/zsh/test1.zsh b/test/zsh/test1.zsh new file mode 100644 index 0000000..66d68fa --- /dev/null +++ b/test/zsh/test1.zsh @@ -0,0 +1,10 @@ +quickstart +init +create_database Default +record_insert foobar +search_pqf firstset @attr 1=/ nothere +expect 0 hits +search_pqf firstset @attr 1=/ foo +expect 1 hits +search_pqf firstset @attr 1=/ nothere +expect 0 hits diff --git a/test/zsh/test2.zsh b/test/zsh/test2.zsh new file mode 100644 index 0000000..54f8fb5 --- /dev/null +++ b/test/zsh/test2.zsh @@ -0,0 +1,8 @@ +quickstart +init +create_database Default +record_insert foobar +search_pqf firstset @attr 1=/ nothere +expect 0 hits +search_pqf firstset @attr 1=/ foo +expect 1 hits