source: php/trunk/unittest/rdftestcases/makefile

Last change on this file was 66, checked in by cla, 14 years ago
  • adapted main makefile to new rdftestcases makefile
  • Property svn:eol-style set to native
File size: 2.0 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# -- test script
21TESTSCRIPT=unittest.php
22
23# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
24
25# determine os dependent values
26ifeq ($(OS), Windows_NT)
27CAT=type
28else
29CAT=cat
30endif
31
32# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
33
34# --- phony targets
35
36.PHONY: help all run list \
37 PositiveParserTest \
38 NegativeParserTest \
39 PositiveEntailmentTest \
40 NegativeEntailmentTest \
41 MiscellaneousTest
42
43# - - - - - - - - - - - - - - - - - -
44
45
46ifneq ($(TESTCASE),)
47testcase:
48 @echo Specific Testcase execution not yet implemented!
49endif
50
51help:
52 @$(CAT) help.txt
53
54all: run
55
56list:
57 @php action.php list
58
59listverbose:
60 @php action.php listverbose
61
62listexceptions:
63 @echo Testcase exceptions
64 @echo -------------------
65 @type exception.lst
66
67PositiveParserTest:
68 @make -s CATEGORY=PositiveParserTest run
69
70NegativeParserTest:
71 @echo NegativeParserTest not yet implemented!
72
73PositiveEntailmentTest:
74 @echo PositiveEntailmentTest not yet implemented!
75
76NegativeEntailmentTest:
77 @echo NegativeEntailmentTest not yet implemented!
78
79MiscellaneousTest:
80 @echo MiscellaneousTest not yet implemented!
81
82# - - - - - - - - - - - - - - - - - -
83
84# this target to execute the testcase with symbol TESTCASE set
85run:
86 @echo =====================================
87 @phpunit $(TESTSCRIPT)
Note: See TracBrowser for help on using the repository browser.