[64] | 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
|
---|
| 21 | TESTSCRIPT=unittest.php
|
---|
| 22 |
|
---|
| 23 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
---|
| 24 |
|
---|
| 25 | # determine os dependent values
|
---|
| 26 | ifeq ($(OS), Windows_NT)
|
---|
| 27 | CAT=type
|
---|
| 28 | else
|
---|
| 29 | CAT=cat
|
---|
| 30 | endif
|
---|
| 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 |
|
---|
[66] | 45 |
|
---|
| 46 | ifneq ($(TESTCASE),)
|
---|
| 47 | testcase:
|
---|
| 48 | @echo Specific Testcase execution not yet implemented!
|
---|
| 49 | endif
|
---|
| 50 |
|
---|
[64] | 51 | help:
|
---|
| 52 | @$(CAT) help.txt
|
---|
| 53 |
|
---|
| 54 | all: run
|
---|
| 55 |
|
---|
| 56 | list:
|
---|
| 57 | @php action.php list
|
---|
| 58 |
|
---|
| 59 | listverbose:
|
---|
| 60 | @php action.php listverbose
|
---|
[66] | 61 |
|
---|
[65] | 62 | listexceptions:
|
---|
| 63 | @echo Testcase exceptions
|
---|
| 64 | @echo -------------------
|
---|
| 65 | @type exception.lst
|
---|
[64] | 66 |
|
---|
| 67 | PositiveParserTest:
|
---|
| 68 | @make -s CATEGORY=PositiveParserTest run
|
---|
| 69 |
|
---|
| 70 | NegativeParserTest:
|
---|
| 71 | @echo NegativeParserTest not yet implemented!
|
---|
| 72 |
|
---|
| 73 | PositiveEntailmentTest:
|
---|
| 74 | @echo PositiveEntailmentTest not yet implemented!
|
---|
| 75 |
|
---|
| 76 | NegativeEntailmentTest:
|
---|
| 77 | @echo NegativeEntailmentTest not yet implemented!
|
---|
| 78 |
|
---|
| 79 | MiscellaneousTest:
|
---|
| 80 | @echo MiscellaneousTest not yet implemented!
|
---|
| 81 |
|
---|
| 82 | # - - - - - - - - - - - - - - - - - -
|
---|
| 83 |
|
---|
| 84 | # this target to execute the testcase with symbol TESTCASE set
|
---|
| 85 | run:
|
---|
| 86 | @echo =====================================
|
---|
| 87 | @phpunit $(TESTSCRIPT)
|
---|