# -*- Mode: Makefile -*- # # Makefile.am - automake file for Rasqal warnings tests # # Copyright (C) 2011, David Beckett http://www.dajobe.org/ # # This package is Free Software and part of Redland http://librdf.org/ # # It is licensed under the following three licenses as alternatives: # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version # 2. GNU General Public License (GPL) V2 or any newer version # 3. Apache License, V2.0 or any newer version # # You may not use this file except in compliance with at least one of # the above three licenses. # # See LICENSE.html or LICENSE.txt at the top of this package for the # complete terms and further detail along with the license texts for # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively. # SPARQL_MANIFEST_FILES= manifest.ttl SPARQL_MODEL_FILES= \ empty.nt SPARQL_TEST_FILES= \ warning-1.rq warning-2.rq warning-3.rq SPARQL_TEST_NAMES= \ $(SPARQL_TEST_FILES) EXPECTED_SPARQL_WARNINGS= $(SPARQL_TEST_NAMES) SPARQL_RESULT_FILES= EXTRA_DIST= \ $(SPARQL_MANIFEST_FILES) \ $(SPARQL_MODEL_FILES) \ $(SPARQL_TEST_FILES) \ $(SPARQL_RESULT_FILES) CLEANFILES=diff.out roqet.err roqet.out roqet.tmp result.out .PHONY: build-core build-roqet check-lcoal # This sequence allows parallel building of build-core and then once # that is built, parallel building of the dependent programs: roqet build-core: @(cd $(top_builddir)/src ; $(MAKE)) build-roqet: build-core @(cd $(top_builddir)/utils ; $(MAKE) roqet) check-local: build-roqet @$(PERL) $(srcdir)/../../improve . get-testsuites-list: @echo "sparql-query" get-testsuite-sparql-query: @$(RECHO) '@prefix rdfs: .'; \ $(RECHO) '@prefix mf: .'; \ $(RECHO) '@prefix t: .'; \ $(RECHO) ' '; \ $(RECHO) "<> a mf:Manifest; rdfs:comment \"SPARQL Query Preparation Warnings\"; mf:entries ("; \ for test in $(EXPECTED_SPARQL_WARNINGS); do \ comment="sparql warning $$test"; \ $(RECHO) " [ a t:NegativeTest; mf:name \"$$test\"; rdfs:comment \"$$comment\"; mf:action \"$(PERL) $(srcdir)/../check-sparql -s $(srcdir) -W 100 '$$test'\" ]"; \ done; \ $(RECHO) ")."