| 1 |
# -*- Mode: Makefile -*- |
| 2 |
# |
| 3 |
# Makefile.am - automake file for Rasqal bug 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 |
MANIFEST_FILES= \ |
| 23 |
manifest.ttl |
| 24 |
|
| 25 |
BUG_DATA_FILES= \ |
| 26 |
352.ttl 353.ttl 354.nt 459.ttl 519.ttl |
| 27 |
|
| 28 |
SPARQL_TEST_FILES= \ |
| 29 |
352.rq 353.rq 354.rq 459.rq 519.rq |
| 30 |
|
| 31 |
SPARQL_TEST_NAMES= \ |
| 32 |
352 353 354 459 519 |
| 33 |
|
| 34 |
SPARQL_RESULT_FILES= \ |
| 35 |
352-result.ttl \ |
| 36 |
353-result.ttl \ |
| 37 |
354-result.ttl \ |
| 38 |
459-result.ttl \ |
| 39 |
519-result.ttl |
| 40 |
|
| 41 |
EXTRA_DIST= \ |
| 42 |
$(MANIFEST_FILES) \ |
| 43 |
$(BUG_DATA_FILES) \ |
| 44 |
$(SPARQL_TEST_FILES) \ |
| 45 |
$(SPARQL_RESULT_FILES) |
| 46 |
|
| 47 |
CLEANFILES=diff.out roqet.err roqet.out roqet.tmp result.out |
| 48 |
|
| 49 |
RECHO=/bin/echo |
| 50 |
|
| 51 |
.PHONY: build-core build-roqet check-lcoal |
| 52 |
|
| 53 |
# This sequence allows parallel building of build-core and then once |
| 54 |
# that is built, parallel building of the dependent programs: roqet |
| 55 |
|
| 56 |
build-core: |
| 57 |
@(cd $(top_builddir)/src ; $(MAKE)) |
| 58 |
|
| 59 |
build-roqet: build-core |
| 60 |
@(cd $(top_builddir)/utils ; $(MAKE) roqet) |
| 61 |
|
| 62 |
check-local: build-roqet |
| 63 |
@$(PERL) $(srcdir)/../../improve . |
| 64 |
|
| 65 |
get-testsuites-list: |
| 66 |
@echo "sparql-query" |
| 67 |
|
| 68 |
get-testsuite-sparql-query: |
| 69 |
@tests="$(SPARQL_TEST_NAMES)"; \ |
| 70 |
$(RECHO) '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .'; \ |
| 71 |
$(RECHO) '@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .'; \ |
| 72 |
$(RECHO) '@prefix t: <http://ns.librdf.org/2009/test-manifest#> .'; \ |
| 73 |
$(RECHO) ' '; \ |
| 74 |
$(RECHO) "<> a mf:Manifest; rdfs:comment \"Bug Tests via SPARQL\"; mf:entries ("; \ |
| 75 |
for test in $$tests; do \ |
| 76 |
comment="sparql query $$test"; \ |
| 77 |
expect="PositiveTest"; \ |
| 78 |
t=`echo $$test`; \ |
| 79 |
$(RECHO) " [ a t:$$expect; mf:name \"$$test\"; rdfs:comment \"$$comment\"; mf:action \"$(PERL) $(srcdir)/../check-sparql -s $(srcdir) $$t\" ]"; \ |
| 80 |
done; \ |
| 81 |
$(RECHO) ")." |