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