Browse Source

* support subdirs under test/

peter 24 years ago
parent
commit
41246cda88
2 changed files with 8 additions and 2 deletions
  1. 3 1
      tests/Makefile
  2. 5 1
      tests/Makefile.fpc

+ 3 - 1
tests/Makefile

@@ -765,6 +765,7 @@ cleanall: fpc_cleanall
 ifneq ($(wildcard fpcmake.loc),)
 ifneq ($(wildcard fpcmake.loc),)
 include fpcmake.loc
 include fpcmake.loc
 endif
 endif
+TESTSUBDIRS=cg units/system units/dos units/crt
 ifeq ($(OS_TARGET),linux)
 ifeq ($(OS_TARGET),linux)
 INUNIX=1
 INUNIX=1
 endif
 endif
@@ -809,7 +810,8 @@ alltbs : testcheck $(patsubst %.pp,%.log,$(wildcard tbs/t*.pp))
 alltbf : testcheck $(patsubst %.pp,%.log,$(wildcard tbf/t*.pp))
 alltbf : testcheck $(patsubst %.pp,%.log,$(wildcard tbf/t*.pp))
 allwebtbs : testcheck $(patsubst %.pp,%.log,$(wildcard webtbs/t*.pp))
 allwebtbs : testcheck $(patsubst %.pp,%.log,$(wildcard webtbs/t*.pp))
 allwebtbf : testcheck $(patsubst %.pp,%.log,$(wildcard webtbf/t*.pp))
 allwebtbf : testcheck $(patsubst %.pp,%.log,$(wildcard webtbf/t*.pp))
-alltest : testcheck $(patsubst %.pp,%.log,$(wildcard test/t*.pp))
+TESTDIRS:=test $(addprefix test/,$(TESTSUBDIRS))
+alltest : testcheck $(patsubst %.pp,%.log,$(wildcard $(addsuffix /t*.pp,$(TESTDIRS))))
 alltestopt : testcheck $(patsubst %.pp,%.log,$(wildcard testopt/t*.pp))
 alltestopt : testcheck $(patsubst %.pp,%.log,$(wildcard testopt/t*.pp))
 alltests: alltest alltbs alltbf allwebtbs allwebtbf
 alltests: alltest alltbs alltbf allwebtbs allwebtbf
 .PHONY: allexectbs allexectbf allexecwebtbs allexecwebtbf allexectest allexectestopt allexectests
 .PHONY: allexectbs allexectbf allexecwebtbs allexecwebtbf allexectest allexectestopt allexectests

+ 5 - 1
tests/Makefile.fpc

@@ -11,6 +11,9 @@ rule=allexectests
 
 
 
 
 [rules]
 [rules]
+# Subdirs available in the test subdir
+TESTSUBDIRS=cg units/system units/dos units/crt
+
 # Unix like OS ?
 # Unix like OS ?
 ifeq ($(OS_TARGET),linux)
 ifeq ($(OS_TARGET),linux)
 INUNIX=1
 INUNIX=1
@@ -91,7 +94,8 @@ alltbf : testcheck $(patsubst %.pp,%.log,$(wildcard tbf/t*.pp))
 allwebtbs : testcheck $(patsubst %.pp,%.log,$(wildcard webtbs/t*.pp))
 allwebtbs : testcheck $(patsubst %.pp,%.log,$(wildcard webtbs/t*.pp))
 allwebtbf : testcheck $(patsubst %.pp,%.log,$(wildcard webtbf/t*.pp))
 allwebtbf : testcheck $(patsubst %.pp,%.log,$(wildcard webtbf/t*.pp))
 
 
-alltest : testcheck $(patsubst %.pp,%.log,$(wildcard test/t*.pp))
+TESTDIRS:=test $(addprefix test/,$(TESTSUBDIRS))
+alltest : testcheck $(patsubst %.pp,%.log,$(wildcard $(addsuffix /t*.pp,$(TESTDIRS))))
 alltestopt : testcheck $(patsubst %.pp,%.log,$(wildcard testopt/t*.pp))
 alltestopt : testcheck $(patsubst %.pp,%.log,$(wildcard testopt/t*.pp))
 
 
 alltests: alltest alltbs alltbf allwebtbs allwebtbf
 alltests: alltest alltbs alltbf allwebtbs allwebtbf