Added cql2pqf which shows evalutation order
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 5 Jul 2006 14:45:57 +0000 (14:45 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 5 Jul 2006 14:45:57 +0000 (14:45 +0000)
test/Makefile.am
test/cql2pqf-order.txt [new file with mode: 0644]

index 61fb914..014aada 100644 (file)
@@ -1,6 +1,6 @@
 ## Copyright (C) 1994-2006, Index Data ApS
 ## All rights reserved.
-## $Id: Makefile.am,v 1.21 2006-07-05 08:10:40 heikki Exp $
+## $Id: Makefile.am,v 1.22 2006-07-05 14:45:57 adam Exp $
 
 check_PROGRAMS = tsticonv tstnmem tstmatchstr tstwrbuf tstodr tstccl tstlog \
  tstsoap1 tstsoap2 tstodrstack tstlogthread tstxmlquery tstpquery \
@@ -11,6 +11,7 @@ check_SCRIPTS = tstcql.sh tstmarciso.sh tstmarcxml.sh
 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
 
 EXTRA_DIST = tstodr.asn tstodrcodec.c tstodrcodec.h cqlsample \
+ cql2pqf-order.txt \
  $(check_SCRIPTS) \
  marc1 marc1.xml marc1.chr marc1.xml.marc \
  marc2 marc2.xml marc2.chr marc2.xml.marc \
diff --git a/test/cql2pqf-order.txt b/test/cql2pqf-order.txt
new file mode 100644 (file)
index 0000000..cb9037c
--- /dev/null
@@ -0,0 +1,28 @@
+# $Id: cql2pqf-order.txt,v 1.1 2006-07-05 14:45:57 adam Exp $
+#
+# cql2pqf spec which tests evaluation order of rules
+# Identifiers for prefixes used in this file. (index.*)
+set.cql                = info:srw/cql-context-set/1/cql-v1.1
+set.rec                = info:srw/cql-context-set/2/rec-1.0
+set.dc         = info:srw/cql-context-set/1/dc-v1.1
+
+# default set (in query)
+set            = info:srw/cql-context-set/1/dc-v1.1
+
+# The default access point and result-set references
+
+index.dc.title                         = 1=index
+
+relation.eq                            = 2=relation
+
+relationModifier.relevant              = 3=modifier
+
+position.any                           = 4=position
+
+
+structure.*                            = 5=structure
+
+truncation.none                                = 6=truncation
+
+always                                 = 7=always
+