Browse Source

+ add ability to execute tests that reside in $fpcdir/packages/*/tests
For now only rtl-objpas is used as the tests nevertheless need to adhere to the rules: t*.pp, ExitCode for result, no parameters

git-svn-id: trunk@35097 -

svenbarth 8 years ago
parent
commit
43d5dacf70
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tests/Makefile.fpc

+ 5 - 1
tests/Makefile.fpc

@@ -160,14 +160,18 @@ LOGEXT=.testlog .tbslog .tbflog .webtbslog .webtbflog
 
 # Subdirs available in the test subdir
 TESTUNITDIRS=system dos crt objects strings sysutils math sharemem strutils matrix lineinfo ucomplex fpwidestring cpu fmtbcd windows
+TESTDIRECTDIRS=
 TESTSUBDIRS=cg cg/variants cg/cdecl cpu16 cpu16/i8086 library opt $(addprefix units/,$(TESTUNITDIRS))
 TESTPACKAGESDIRS=win-base webtbs hash fcl-registry fcl-process zlib fcl-db fcl-xml cocoaint bzip2
 TESTPACKAGESUBDIRS=$(addprefix packages/,$(TESTPACKAGESDIRS))
+TESTPACKAGESDIRECTDIRS=rtl-objpas
+TESTPACKAGESDIRECTSUBDIRS=$(addprefix ../packages/,$(addsuffix /tests,$(TESTPACKAGESDIRECTDIRS)))
 
 ifdef QUICKTEST
 export QUICKTEST
 else
 override TESTSUBDIRS+=$(TESTPACKAGESUBDIRS) alglib
+override TESTDIRECTDIRS+=$(TESTPACKAGESDIRECTSUBDIRS)
 endif
 
 # number of tests to run per (potentially parallel) chunk/dotest invocation
@@ -176,7 +180,7 @@ export CHUNKSIZE:=100
 endif
 
 # All full dirnames in the test/ dir including the subdir self
-TESTDIRS:=test $(addprefix test/,$(TESTSUBDIRS))
+TESTDIRS:=test $(addprefix test/,$(TESTSUBDIRS)) $(TESTDIRECTDIRS)
 
 .PHONY: utils tstunits copyfiles testprep