Преглед на файлове

* always add -Fd to the compiler command line parameters, because the
directory cache significantly slows down running the testsuite (most
tests only use very few units, and are located in directories
containing hundreds or thousands of other, unrelated files)

git-svn-id: trunk@21761 -

Jonas Maebe преди 13 години
родител
ревизия
b07f8b42fd
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 1 0
      tests/Makefile
  2. 5 0
      tests/Makefile.fpc

+ 1 - 0
tests/Makefile

@@ -1898,6 +1898,7 @@ endif
 ifndef TEST_OPT
 TEST_OPT=
 endif
+override TEST_OPT+=-Fd
 ifndef TEST_FPC_VERSION
 TEST_FPC_COMPILERINFO:=$(shell $(TEST_FPC) -iVSPTPSOTODW)
 TEST_FPC_VERSION:=$(word 1,$(TEST_FPC_COMPILERINFO))

+ 5 - 0
tests/Makefile.fpc

@@ -36,6 +36,11 @@ ifndef TEST_OPT
 TEST_OPT=
 endif
 
+# disable directory cache; completely loading all directories significantly
+# slows down running the testsuite because the programs use very few units
+# and most testsuite directories contain thousands of files
+override TEST_OPT+=-Fd
+
 # Retrieve Test compiler info
 ifndef TEST_FPC_VERSION
 TEST_FPC_COMPILERINFO:=$(shell $(TEST_FPC) -iVSPTPSOTODW)