Debian Codegraph @

tests/laqrs/syntax/Makefile.am

raw
1 # -*- Mode: Makefile -*-
2 #
3 # Makefile.am - automake file for Rasqal syntax LAQRS tests
4 #
5 # Copyright (C) 2007-2010, David Beckett http://www.dajobe.org/
6 #
7 # This package is Free Software and part of Redland http://librdf.org/
8 #
9 # It is licensed under the following three licenses as alternatives:
10 # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
11 # 2. GNU General Public License (GPL) V2 or any newer version
12 # 3. Apache License, V2.0 or any newer version
13 #
14 # You may not use this file except in compliance with at least one of
15 # the above three licenses.
16 #
17 # See LICENSE.html or LICENSE.txt at the top of this package for the
18 # complete terms and further detail along with the license texts for
19 # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
20 #
21
22 LAQRS_MODEL_FILES= \
23 data.n3
24
25 LAQRS_TEST_FILES= \
26 agg-function1.rq \
27 coalesce1.rq \
28 count1.rq \
29 count2.rq \
30 count3.rq \
31 count4.rq \
32 coverage.rq \
33 explain.rq \
34 function-distinct1.rq \
35 delete.rq \
36 in1.rq \
37 in2.rq \
38 insert.rq \
39 avg1.rq \
40 max1.rq \
41 min1.rq \
42 sum1.rq \
43 let1.rq \
44 let2.rq \
45 let3.rq \
46 let4.rq \
47 strdt1.rq \
48 strdt2.rq \
49 strlang1.rq \
50 bnode1.rq \
51 bnode2.rq \
52 uri1.rq \
53 iri1.rq \
54 if1.rq
55
56 LAQRS_BAD_TEST_FILES= \
57 bad-select-expr.rq
58
59 EXPECTED_LAQRS_CORRECT_FAILURES=
60
61 EXTRA_DIST= \
62 $(LAQRS_MODEL_FILES) \
63 $(LAQRS_TEST_FILES) \
64 $(LAQRS_BAD_TEST_FILES)
65
66 build-sparql-parser-test:
67 @(cd $(top_builddir)/src ; $(MAKE) sparql_parser_test)
68
69 check-local: build-sparql-parser-test
70 @$(PERL) $(srcdir)/../../improve .
71
72 get-testsuites-list:
73 @echo "laqrs-parse-good laqrs-parse-bad"
74
75 get-testsuite-laqrs-parse-good:
76 @prog=sparql_parser_test; \
77 $(RECHO) '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .'; \
78 $(RECHO) '@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .'; \
79 $(RECHO) '@prefix t: <http://ns.librdf.org/2009/test-manifest#> .'; \
80 $(RECHO) ' '; \
81 $(RECHO) "<> a mf:Manifest; rdfs:comment \"LAQRS legal parsing\"; mf:entries ("; \
82 for test in $(LAQRS_TEST_FILES); do \
83 comment="laqrs parsing of $$test"; \
84 $(RECHO) " [ a t:PositiveTest; mf:name \"$$test\"; rdfs:comment \"$$comment\"; mf:action \"$(top_builddir)/src/$$prog -i laqrs $(srcdir)/$$test\" ]"; \
85 done; \
86 $(RECHO) ")."
87
88
89 get-testsuite-laqrs-parse-bad:
90 @prog=sparql_parser_test; \
91 $(RECHO) '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .'; \
92 $(RECHO) '@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .'; \
93 $(RECHO) '@prefix t: <http://ns.librdf.org/2009/test-manifest#> .'; \
94 $(RECHO) ' '; \
95 $(RECHO) "<> a mf:Manifest; rdfs:comment \"LAQRS illegal parsing\"; mf:entries ("; \
96 for test in $(LAQRS_BAD_TEST_FILES); do \
97 comment="laqrs failing to parse of $$test"; \
98 $(RECHO) " [ a t:NegativeTest; mf:name \"$$test\"; rdfs:comment \"$$comment\"; mf:action \"$(top_builddir)/src/$$prog -i laqrs $(srcdir)/$$test\" ]"; \
99 done; \
100 $(RECHO) ")."
101