Added two test scripts
authorHeikki Levanto <heikki@indexdata.dk>
Thu, 21 Aug 2003 10:40:44 +0000 (10:40 +0000)
committerHeikki Levanto <heikki@indexdata.dk>
Thu, 21 Aug 2003 10:40:44 +0000 (10:40 +0000)
test/zsh/Makefile.am
test/zsh/test1.zsh [new file with mode: 0644]
test/zsh/test2.zsh [new file with mode: 0644]

index ce41508..caaf60d 100644 (file)
@@ -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 (file)
index 0000000..66d68fa
--- /dev/null
@@ -0,0 +1,10 @@
+quickstart
+init 
+create_database Default
+record_insert <xml><head>foo</head><body>bar</body></xml>
+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 (file)
index 0000000..54f8fb5
--- /dev/null
@@ -0,0 +1,8 @@
+quickstart
+init 
+create_database Default
+record_insert <xml><head>foo</head><body>bar</body></xml>
+search_pqf firstset @attr 1=/ nothere
+expect 0 hits
+search_pqf firstset @attr 1=/ foo
+expect 1 hits