Ignore:
Timestamp:
Jul 17, 2011, 2:14:37 PM (14 years ago)
Author:
cla
Message:

rdfint

  • added more w3c RDF testcases
  • eliminated extra target changedir and with it one make call level
File:
1 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/unittest/makefile

    r17 r49  
    2626amp-in-url/test001 \
    2727datatypes/test001  \
     28datatypes/test002  \
     29rdfms-reification-required/test001 \
     30rdfms-xmllang/test001 \
     31rdfms-xmllang/test002 \
     32rdfms-xmllang/test003 \
     33rdfms-xmllang/test004 \
     34rdfms-xmllang/test005 \
     35rdfms-xmllang/test006 \
     36unrecognised-xml-attributes/test001 \
     37unrecognised-xml-attributes/test002 \
    2838
    2939# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    4050# --- phony targets
    4151
    42 .PHONY: help all lib rdf changedir
     52.PHONY: help all lib rdf run
    4353
    4454# - - - - - - - - - - - - - - - - - -
     
    4656help:
    4757        @$(CAT) help.txt
    48        
     58
     59all: lib rdf
     60
    4961list:
    5062        @echo Available library testcases:
     
    6274
    6375
    64 all: lib rdf
    65 
    6676# - - - - - - - - - - - - - - - - - -
    6777
    68 # execute library specifc testcases
     78# execute all or selected library specific testcases
    6979
    7080lib:
    7181ifeq ($(TESTCASE),)
    7282ifeq ($(OS), Windows_NT)
    73         @for /d %%c in (*) do @make -s TESTCASE=%%c SUBDIR=%%c changedir
     83        @for /d %%c in (*) do @make -s TESTCASE=%%c SUBDIR=%%c run
    7484else
    75         @for c in `find . -maxdepth 1 -type d -path "./*_*"`; do make -s TESTCASE=$$c SUBDIR=$$c changedir; done
     85        @for c in `find . -maxdepth 1 -type d -path "./*_*"`; do make -s TESTCASE=$$c SUBDIR=$$c run; done
    7686endif
    7787else
    78         @make -s TESTCASE=$(TESTCASE) SUBDIR=$(TESTCASE) changedir
     88        @make -s TESTCASE=$(TESTCASE) SUBDIR=$(TESTCASE) run
    7989endif
    8090
    8191# - - - - - - - - - - - - - - - - - -
    8292
    83 # execute selected W3C RDF testcases
     93# execute all or selected W3C RDF testcases
    8494
    8595rdf:
    8696ifeq ($(TESTCASE),)
    8797ifeq ($(OS), Windows_NT)
    88         -@for /d %%c in ($(RDFTESTCASES)) do @make -s TESTCASE=%%c SUBDIR=rdftestcases changedir
     98        -@for /d %%c in ($(RDFTESTCASES)) do @make -s TESTCASE=%%c SUBDIR=rdftestcases run
    8999else
    90         -@for d in $(RDFTESTCASES); do make -s TESTCASE=$$d SUBDIR=rdftestcases changedir; done
     100        -@for d in $(RDFTESTCASES); do make -s TESTCASE=$$d SUBDIR=rdftestcases run; done
    91101endif
    92102else
    93         @make -s TESTCASE=$(TESTCASE) SUBDIR=rdftestcases changedir
     103        @make -s TESTCASE=$(TESTCASE) SUBDIR=rdftestcases run
    94104endif
    95105
    96106# - - - - - - - - - - - - - - - - - -
    97107
    98 # this target to change into the subdirectory of the testcase
    99 changedir:
    100         make -s --directory $(SUBDIR) TESTCASE=$(TESTCASE) -f ../makefile run
    101 
    102 # - - - - - - - - - - - - - - - - - -
    103 
    104 # this target to finally execute the testcase
    105 
     108# this target to change into the subdirectory of
     109# the testcase and execute it
    106110run:
    107111        @echo =====================================
    108         @phpunit $(TESTSCRIPT)
     112        @cd $(SUBDIR) && phpunit $(TESTSCRIPT)
Note: See TracChangeset for help on using the changeset viewer.