From e8ddf3796d9ff4fe1eac68c613a68a40e1390bce Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Thu, 21 Aug 2003 10:40:44 +0000 Subject: [PATCH] Added two test scripts --- test/zsh/Makefile.am | 4 ++-- test/zsh/test1.zsh | 10 ++++++++++ test/zsh/test2.zsh | 8 ++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 test/zsh/test1.zsh create mode 100644 test/zsh/test2.zsh 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 -- 1.7.10.4