Changeset 5


Ignore:
Timestamp:
Jul 11, 2011, 5:22:07 PM (14 years ago)
Author:
cla
Message:

rdfint

  • added support for executing single testcase
  • added help, displaying help is now the default action
Location:
php/trunk/unittest
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • php/trunk/unittest/makefile

    r3 r5  
    2222# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    2323
     24# determine os dependent values
     25ifeq ($(OS), Windows_NT)
     26CAT=type
     27else
     28CAT=cat
     29endif
     30
     31# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     32
    2433#       @for i in `find . -maxdepth 1 -type d` do echo $(i)
    2534# --- phony targets
    2635
    27 .PHONY: all changedir
     36.PHONY: help all changedir
    2837
     38
     39ifneq ($(TESTCASE),)
    2940all:
     41        -@make -s SUBDIR=$(TESTCASE) changedir
     42else
     43
     44help:
     45        @$(CAT) help.txt
     46
    3047ifeq ($(OS), Windows_NT)
     48all:
    3149        -@for /d %%a in (*) do @make -s SUBDIR=%%a changedir
    3250else
     51all:
    3352        -@for d in `find . -maxdepth 1 -type d`; do make -s SUBDIR=$$d changedir; done
     53endif
    3454endif
    3555
Note: See TracChangeset for help on using the changeset viewer.