source: php/trunk/unittest/makefile@ 62

Last change on this file since 62 was 59, checked in by cla, 14 years ago

rdfint

  • added tons of testcases ;-)
  • Property svn:eol-style set to native
File size: 7.1 KB
Line 
1
2# RDFInt.php - RDF Interfaces for PHP
3# Copyright 2011 netlabs.org
4# Author: Christian Langanke, Adrian Gschwend
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18# ----- CONFIGURE HERE
19
20
21# -- test script in subdirectories
22TESTSCRIPT=unittest.php
23
24# -- selected W3C testcases, to be executed by rdftestcases/$(TESTSCRIPT)
25RDFTESTCASES= \
26amp-in-url/test001 \
27datatypes/test001 \
28datatypes/test002 \
29rdf-element-not-mandatory/test001 \
30rdfms-reification-required/test001 \
31rdfms-uri-substructure/test001 \
32rdfms-xmllang/test001 \
33rdfms-xmllang/test002 \
34rdfms-xmllang/test003 \
35rdfms-xmllang/test004 \
36rdfms-xmllang/test005 \
37rdfms-xmllang/test006 \
38unrecognised-xml-attributes/test001 \
39unrecognised-xml-attributes/test002 \
40rdf-charmod-literals/test001 \
41rdf-charmod-uris/test001 \
42rdf-charmod-uris/test002 \
43rdf-containers-syntax-vs-schema/test001 \
44rdf-containers-syntax-vs-schema/test002 \
45rdf-containers-syntax-vs-schema/test003 \
46rdf-containers-syntax-vs-schema/test004 \
47rdf-containers-syntax-vs-schema/test006 \
48rdf-containers-syntax-vs-schema/test007 \
49rdf-containers-syntax-vs-schema/test008 \
50rdf-ns-prefix-confusion/test0001 \
51rdf-ns-prefix-confusion/test0003 \
52rdf-ns-prefix-confusion/test0004 \
53rdf-ns-prefix-confusion/test0005 \
54rdf-ns-prefix-confusion/test0006 \
55rdf-ns-prefix-confusion/test0009 \
56rdf-ns-prefix-confusion/test0010 \
57rdf-ns-prefix-confusion/test0011 \
58rdf-ns-prefix-confusion/test0012 \
59rdf-ns-prefix-confusion/test0013 \
60rdf-ns-prefix-confusion/test0014 \
61rdfms-difference-between-ID-and-about/test1 \
62rdfms-difference-between-ID-and-about/test2 \
63rdfms-difference-between-ID-and-about/test3 \
64rdfms-duplicate-member-props/test001 \
65rdfms-empty-property-elements/test001 \
66rdfms-empty-property-elements/test002 \
67rdfms-empty-property-elements/test003 \
68rdfms-empty-property-elements/test004 \
69rdfms-empty-property-elements/test005 \
70rdfms-empty-property-elements/test006 \
71rdfms-empty-property-elements/test007 \
72rdfms-empty-property-elements/test008 \
73rdfms-empty-property-elements/test009 \
74rdfms-empty-property-elements/test010 \
75rdfms-empty-property-elements/test011 \
76rdfms-empty-property-elements/test012 \
77rdfms-empty-property-elements/test013 \
78rdfms-empty-property-elements/test014 \
79rdfms-empty-property-elements/test015 \
80rdfms-empty-property-elements/test016 \
81rdfms-empty-property-elements/test017 \
82rdfms-identity-anon-resources/test001 \
83rdfms-identity-anon-resources/test002 \
84rdfms-identity-anon-resources/test003 \
85rdfms-identity-anon-resources/test004 \
86rdfms-identity-anon-resources/test005 \
87rdfms-not-id-and-resource-attr/test001 \
88rdfms-not-id-and-resource-attr/test002 \
89rdfms-not-id-and-resource-attr/test004 \
90rdfms-not-id-and-resource-attr/test005 \
91rdfms-para196/test001 \
92rdfms-rdf-names-use/test-001 \
93rdfms-rdf-names-use/test-002 \
94rdfms-rdf-names-use/test-003 \
95rdfms-rdf-names-use/test-004 \
96rdfms-rdf-names-use/test-005 \
97rdfms-rdf-names-use/test-006 \
98rdfms-rdf-names-use/test-007 \
99rdfms-rdf-names-use/test-008 \
100rdfms-rdf-names-use/test-009 \
101rdfms-rdf-names-use/test-010 \
102rdfms-rdf-names-use/test-011 \
103rdfms-rdf-names-use/test-012 \
104rdfms-rdf-names-use/test-013 \
105rdfms-rdf-names-use/test-014 \
106rdfms-rdf-names-use/test-015 \
107rdfms-rdf-names-use/test-016 \
108rdfms-rdf-names-use/test-017 \
109rdfms-rdf-names-use/test-018 \
110rdfms-rdf-names-use/test-019 \
111rdfms-rdf-names-use/test-020 \
112rdfms-rdf-names-use/test-021 \
113rdfms-rdf-names-use/test-022 \
114rdfms-rdf-names-use/test-023 \
115rdfms-rdf-names-use/test-024 \
116rdfms-rdf-names-use/test-025 \
117rdfms-rdf-names-use/test-026 \
118rdfms-rdf-names-use/test-027 \
119rdfms-rdf-names-use/test-028 \
120rdfms-rdf-names-use/test-029 \
121rdfms-rdf-names-use/test-030 \
122rdfms-rdf-names-use/test-031 \
123rdfms-rdf-names-use/test-032 \
124rdfms-rdf-names-use/test-033 \
125rdfms-rdf-names-use/test-034 \
126rdfms-rdf-names-use/test-035 \
127rdfms-rdf-names-use/test-036 \
128rdfms-rdf-names-use/test-037 \
129rdfms-seq-representation/test001 \
130rdfms-syntax-incomplete/test001 \
131rdfms-syntax-incomplete/test002 \
132rdfms-syntax-incomplete/test003 \
133rdfms-syntax-incomplete/test004 \
134xmlbase/test001 \
135xmlbase/test002 \
136xmlbase/test003 \
137xmlbase/test004 \
138xmlbase/test006 \
139xmlbase/test007 \
140xmlbase/test008 \
141xmlbase/test009 \
142xmlbase/test010 \
143xmlbase/test011 \
144xmlbase/test013 \
145xmlbase/test014 \
146# FAIL rdfms-xml-literal-namespaces/test001 \
147# FAIL rdfms-xml-literal-namespaces/test002 \
148rdfs-domain-and-range/test001 \
149rdfs-domain-and-range/test002 \
150rdfs-no-cycles-in-subClassOf/test001 \
151rdfs-no-cycles-in-subPropertyOf/test001 \
152rdfs-subPropertyOf-semantics/test001 \
153
154
155# failing tescases, to be examined by maintainer
156RDFTESTCASES_FAIL= \
157xml-canon/test001 \
158rdfms-xml-literal-namespaces/test001 \
159rdfms-xml-literal-namespaces/test002 \
160
161# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
162
163# determine os dependent values
164ifeq ($(OS), Windows_NT)
165CAT=type
166else
167CAT=cat
168endif
169
170# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
171
172# --- phony targets
173
174.PHONY: help all lib rdf run
175
176# - - - - - - - - - - - - - - - - - -
177
178help:
179 @$(CAT) help.txt
180
181all: lib rdf
182
183list:
184 @echo Available library testcases:
185ifeq ($(OS), Windows_NT)
186 -@for /d %%c in (*_*) do @echo %%c
187else
188 -@for c in `find . -maxdepth 1 -type d -path "./*_*"` ; do echo " " $$c; done
189endif
190 @echo Available RDF Testcases:
191ifeq ($(OS), Windows_NT)
192 -@for /d %%c in ($(RDFTESTCASES)) do @echo %%c
193else
194 -@for c in $(RDFTESTCASES); do echo " " $$c; done
195endif
196
197
198# - - - - - - - - - - - - - - - - - -
199
200# execute all or selected library specific testcases
201
202lib:
203ifeq ($(TESTCASE),)
204ifeq ($(OS), Windows_NT)
205 @for /d %%c in (*_*) do @make -s TESTCASE=%%c SUBDIR=%%c run
206else
207 @for c in `find . -maxdepth 1 -type d -path "./*_*"`; do make -s TESTCASE=$$c SUBDIR=$$c run; done
208endif
209else
210 @make -s TESTCASE=$(TESTCASE) SUBDIR=$(TESTCASE) run
211endif
212
213# - - - - - - - - - - - - - - - - - -
214
215# execute all or selected W3C RDF testcases
216
217rdf:
218ifeq ($(TESTCASE),)
219ifeq ($(OS), Windows_NT)
220 -@for /d %%c in ($(RDFTESTCASES)) do @make -s TESTCASE=%%c SUBDIR=rdftestcases run
221else
222 -@for d in $(RDFTESTCASES); do make -s TESTCASE=$$d SUBDIR=rdftestcases run; done
223endif
224else
225 @make -s TESTCASE=$(TESTCASE) SUBDIR=rdftestcases run
226endif
227
228# - - - - - - - - - - - - - - - - - -
229
230# for maintainers only
231# execute all failing W3C RDF testcases
232
233rdffail:
234ifeq ($(OS), Windows_NT)
235 -@for /d %%c in ($(RDFTESTCASES_FAIL)) do @make -s TESTCASE=%%c SUBDIR=rdftestcases run
236else
237 -@for d in $(RDFTESTCASES_FAIL); do make -s TESTCASE=$$d SUBDIR=rdftestcases run; done
238endif
239
240# - - - - - - - - - - - - - - - - - -
241
242# this target to change into the subdirectory of
243# the testcase and execute it
244run:
245 @echo =====================================
246 @cd $(SUBDIR) && phpunit $(TESTSCRIPT)
Note: See TracBrowser for help on using the repository browser.