| 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 |
|
|---|
| 45 | help:
|
|---|
| 46 | @$(CAT) help.txt
|
|---|
| 47 |
|
|---|
| 48 | all: run
|
|---|
| 49 |
|
|---|
| 50 | list:
|
|---|
| 51 | @php action.php list
|
|---|
| 52 |
|
|---|
| 53 | listverbose:
|
|---|
| 54 | @php action.php listverbose
|
|---|
| 55 |
|
|---|
| 56 | PositiveParserTest:
|
|---|
| 57 | @make -s CATEGORY=PositiveParserTest run
|
|---|
| 58 |
|
|---|
| 59 | NegativeParserTest:
|
|---|
| 60 | @echo NegativeParserTest not yet implemented!
|
|---|
| 61 |
|
|---|
| 62 | PositiveEntailmentTest:
|
|---|
| 63 | @echo PositiveEntailmentTest not yet implemented!
|
|---|
| 64 |
|
|---|
| 65 | NegativeEntailmentTest:
|
|---|
| 66 | @echo NegativeEntailmentTest not yet implemented!
|
|---|
| 67 |
|
|---|
| 68 | MiscellaneousTest:
|
|---|
| 69 | @echo MiscellaneousTest not yet implemented!
|
|---|
| 70 |
|
|---|
| 71 | # - - - - - - - - - - - - - - - - - -
|
|---|
| 72 |
|
|---|
| 73 | # this target to execute the testcase with symbol TESTCASE set
|
|---|
| 74 | run:
|
|---|
| 75 | @echo =====================================
|
|---|
| 76 | @phpunit $(TESTSCRIPT)
|
|---|