Changeset 49 for php/trunk/unittest/makefile
- Timestamp:
- Jul 17, 2011, 2:14:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
php/trunk/unittest/makefile
r17 r49 26 26 amp-in-url/test001 \ 27 27 datatypes/test001 \ 28 datatypes/test002 \ 29 rdfms-reification-required/test001 \ 30 rdfms-xmllang/test001 \ 31 rdfms-xmllang/test002 \ 32 rdfms-xmllang/test003 \ 33 rdfms-xmllang/test004 \ 34 rdfms-xmllang/test005 \ 35 rdfms-xmllang/test006 \ 36 unrecognised-xml-attributes/test001 \ 37 unrecognised-xml-attributes/test002 \ 28 38 29 39 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - … … 40 50 # --- phony targets 41 51 42 .PHONY: help all lib rdf changedir52 .PHONY: help all lib rdf run 43 53 44 54 # - - - - - - - - - - - - - - - - - - … … 46 56 help: 47 57 @$(CAT) help.txt 48 58 59 all: lib rdf 60 49 61 list: 50 62 @echo Available library testcases: … … 62 74 63 75 64 all: lib rdf65 66 76 # - - - - - - - - - - - - - - - - - - 67 77 68 # execute library specifc testcases78 # execute all or selected library specific testcases 69 79 70 80 lib: 71 81 ifeq ($(TESTCASE),) 72 82 ifeq ($(OS), Windows_NT) 73 @for /d %%c in (*) do @make -s TESTCASE=%%c SUBDIR=%%c changedir83 @for /d %%c in (*) do @make -s TESTCASE=%%c SUBDIR=%%c run 74 84 else 75 @for c in `find . -maxdepth 1 -type d -path "./*_*"`; do make -s TESTCASE=$$c SUBDIR=$$c changedir; done85 @for c in `find . -maxdepth 1 -type d -path "./*_*"`; do make -s TESTCASE=$$c SUBDIR=$$c run; done 76 86 endif 77 87 else 78 @make -s TESTCASE=$(TESTCASE) SUBDIR=$(TESTCASE) changedir88 @make -s TESTCASE=$(TESTCASE) SUBDIR=$(TESTCASE) run 79 89 endif 80 90 81 91 # - - - - - - - - - - - - - - - - - - 82 92 83 # execute selected W3C RDF testcases93 # execute all or selected W3C RDF testcases 84 94 85 95 rdf: 86 96 ifeq ($(TESTCASE),) 87 97 ifeq ($(OS), Windows_NT) 88 -@for /d %%c in ($(RDFTESTCASES)) do @make -s TESTCASE=%%c SUBDIR=rdftestcases changedir98 -@for /d %%c in ($(RDFTESTCASES)) do @make -s TESTCASE=%%c SUBDIR=rdftestcases run 89 99 else 90 -@for d in $(RDFTESTCASES); do make -s TESTCASE=$$d SUBDIR=rdftestcases changedir; done100 -@for d in $(RDFTESTCASES); do make -s TESTCASE=$$d SUBDIR=rdftestcases run; done 91 101 endif 92 102 else 93 @make -s TESTCASE=$(TESTCASE) SUBDIR=rdftestcases changedir103 @make -s TESTCASE=$(TESTCASE) SUBDIR=rdftestcases run 94 104 endif 95 105 96 106 # - - - - - - - - - - - - - - - - - - 97 107 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 106 110 run: 107 111 @echo ===================================== 108 @ phpunit $(TESTSCRIPT)112 @cd $(SUBDIR) && phpunit $(TESTSCRIPT)
Note:
See TracChangeset
for help on using the changeset viewer.