Debian Codegraph @

tests/sparql/sparql11/Makefile.am

raw
1 # -*- Mode: Makefile -*-
2 #
3 # Makefile.am - automake file for Rasqal SPARQL 1.1 tests
4 #
5 # Copyright (C) 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 SPARQL_MODEL_FILES= \
23 data-1.ttl \
24 subquery-1.ttl
25
26 EXPECTED_SPARQL_CORRECT= \
27 isnumeric-1.rq \
28 subquery-1.rq
29
30 EXPECTED_SPARQL_CORRECT_FAILURES=
31
32 EXTRA_DIST= \
33 $(SPARQL_MODEL_FILES) \
34 $(EXPECTED_SPARQL_CORRECT)
35
36 build-sparql-parser-test:
37 @(cd $(top_builddir)/src ; $(MAKE) sparql_parser_test)
38
39 check-local: build-sparql-parser-test
40 @$(PERL) $(srcdir)/../../improve .
41
42 get-testsuites-list:
43 @echo "sparql-parse-good"
44
45 get-testsuite-sparql-parse-good:
46 @prog=sparql_parser_test; \
47 $(RECHO) '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .'; \
48 $(RECHO) '@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .'; \
49 $(RECHO) '@prefix t: <http://ns.librdf.org/2009/test-manifest#> .'; \
50 $(RECHO) ' '; \
51 $(RECHO) "<> a mf:Manifest; rdfs:comment \"SPARQL 1.1 expressions legal parsing\"; mf:entries ("; \
52 for test in $(EXPECTED_SPARQL_CORRECT); do \
53 comment="sparql parsing of $$test"; \
54 $(RECHO) " [ a t:PositiveTest; mf:name \"$$test\"; rdfs:comment \"$$comment\"; mf:action \"$(top_builddir)/src/$$prog -i sparql11 $(srcdir)/$$test\" ]"; \
55 done; \
56 for test in $(EXPECTED_SPARQL_CORRECT_FAILURES); do \
57 comment="sparql parsing of $$test"; \
58 $(RECHO) " [ a t:NegativeTest; mf:name \"$$test\"; rdfs:comment \"$$comment\"; mf:action \"$(top_builddir)/src/$$prog -i sparql11 $(srcdir)/$$test\" ]"; \
59 done; \
60 $(RECHO) ")."