Debian Codegraph @

tests/sparql/warnings/Makefile.am

raw
1 # -*- Mode: Makefile -*-
2 #
3 # Makefile.am - automake file for Rasqal warnings tests
4 #
5 # Copyright (C) 2011, 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_MANIFEST_FILES= manifest.ttl
23
24 SPARQL_MODEL_FILES= \
25 empty.nt
26
27 SPARQL_TEST_FILES= \
28 warning-1.rq warning-2.rq warning-3.rq
29
30 SPARQL_TEST_NAMES= \
31 $(SPARQL_TEST_FILES)
32
33 EXPECTED_SPARQL_WARNINGS= $(SPARQL_TEST_NAMES)
34
35 SPARQL_RESULT_FILES=
36
37 EXTRA_DIST= \
38 $(SPARQL_MANIFEST_FILES) \
39 $(SPARQL_MODEL_FILES) \
40 $(SPARQL_TEST_FILES) \
41 $(SPARQL_RESULT_FILES)
42
43 CLEANFILES=diff.out roqet.err roqet.out roqet.tmp result.out
44
45 .PHONY: build-core build-roqet check-lcoal
46
47 # This sequence allows parallel building of build-core and then once
48 # that is built, parallel building of the dependent programs: roqet
49
50 build-core:
51 @(cd $(top_builddir)/src ; $(MAKE))
52
53 build-roqet: build-core
54 @(cd $(top_builddir)/utils ; $(MAKE) roqet)
55
56 check-local: build-roqet
57 @$(PERL) $(srcdir)/../../improve .
58
59 get-testsuites-list:
60 @echo "sparql-query"
61
62 get-testsuite-sparql-query:
63 @$(RECHO) '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .'; \
64 $(RECHO) '@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .'; \
65 $(RECHO) '@prefix t: <http://ns.librdf.org/2009/test-manifest#> .'; \
66 $(RECHO) ' '; \
67 $(RECHO) "<> a mf:Manifest; rdfs:comment \"SPARQL Query Preparation Warnings\"; mf:entries ("; \
68 for test in $(EXPECTED_SPARQL_WARNINGS); do \
69 comment="sparql warning $$test"; \
70 $(RECHO) " [ a t:NegativeTest; mf:name \"$$test\"; rdfs:comment \"$$comment\"; mf:action \"$(PERL) $(srcdir)/../check-sparql -s $(srcdir) -W 100 '$$test'\" ]"; \
71 done; \
72 $(RECHO) ")."