testcases/Makefile
author Paul Groth <p.t.groth@vu.nl>
Tue, 04 Jun 2013 21:43:00 +0200
changeset 6405 ca9dea97e44b
parent 5461 b1a7f53929cf
permissions -rw-r--r--
added link to overview
TXTFILES = rdf-tests.txt provn-tests.txt xml-tests.txt all-tests.txt
BASE_URL = https://dvcs.w3.org/hg/prov/raw-file/default/testcases/

XML_SCHEMA = ../xml/schema/prov.xsd

all:	$(TXTFILES)

rdf-tests.txt:
	grep -Eo '[a-z]+/[a-zA-Z0-9-]+\.[ttl|trig]' process.html | sed "s|^|$(BASE_URL)|" >> $@

provn-tests.txt:
	grep -Eo '[a-z]+/[a-zA-Z0-9-]+\.provn' process.html | sed "s|^|$(BASE_URL)|" >> $@

xml-tests.txt:
	grep -Eo '[a-z]+/[a-zA-Z0-9-]+\.provx' process.html | sed "s|^|$(BASE_URL)|" >> $@

all-tests.txt:
	grep -Eo '[a-z]+/[a-zA-Z0-9-]+\.[ttl|provn|provx|trig]+' process.html | sed "s|^|$(BASE_URL)|" >> $@

run-xml-tests: xml-tests.txt
	# for each record in xml-tests.txt
	for i in `cat xml-tests.txt`; do \
	j=`echo $$i | sed "s|$(BASE_URL)||"` ; \
	xmllint --noout --schema $(XML_SCHEMA) $$j ; \
	done