فهرست منبع

Add TEST_BENCH config

git-svn-id: trunk@16758 -
pierre 14 سال پیش
والد
کامیت
c5b2096f40
3فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 4 0
      tests/Makefile
  2. 4 0
      tests/Makefile.fpc
  3. 2 1
      tests/readme.txt

+ 4 - 0
tests/Makefile

@@ -1563,6 +1563,10 @@ endif
 ifdef TEST_VERBOSE
 ifdef TEST_VERBOSE
 override DOTESTOPT+=-V
 override DOTESTOPT+=-V
 endif
 endif
+# Also display benchmarks
+ifdef TEST_BENCH
+override DOTESTOPT+=-D
+endif
 ifdef V
 ifdef V
 Q=
 Q=
 QECHO=
 QECHO=

+ 4 - 0
tests/Makefile.fpc

@@ -253,6 +253,10 @@ endif
 ifdef TEST_VERBOSE
 ifdef TEST_VERBOSE
 override DOTESTOPT+=-V
 override DOTESTOPT+=-V
 endif
 endif
+# Also display benchmarks
+ifdef TEST_BENCH
+override DOTESTOPT+=-D
+endif
 ifdef V
 ifdef V
 Q=
 Q=
 QECHO=
 QECHO=

+ 2 - 1
tests/readme.txt

@@ -126,13 +126,14 @@ TEST_FPC_VERSION       defaults to version of TEST_FPC
 TEST_CCOMPILER         defaults to installed gcc compiler, but only
 TEST_CCOMPILER         defaults to installed gcc compiler, but only
                        if driver and test full-targets are the same.
                        if driver and test full-targets are the same.
 TEST_VERBOSE           let dotest be more verbose, only useful for debugging
 TEST_VERBOSE           let dotest be more verbose, only useful for debugging
+TEST_BENCH             display compilation/execution time of each test
 TEST_DELTEMP           delete temporary executable/object/ppu file,
 TEST_DELTEMP           delete temporary executable/object/ppu file,
                        default is off
                        default is off
 TEST_TIMEOUT           use timeout wrapper for (remote) execution
 TEST_TIMEOUT           use timeout wrapper for (remote) execution
 V                      print dotest commandline
 V                      print dotest commandline
 TEST_ABI               test a certain abi, this influences where the
 TEST_ABI               test a certain abi, this influences where the
                        c object files are taken from: TEST_ABI=eabi
                        c object files are taken from: TEST_ABI=eabi
-                       takes the c*.o files from 
+                       takes the c*.o files from
                        test/cg/obj/linux/arm-eabi
                        test/cg/obj/linux/arm-eabi
 
 
   (Please add more test options if needed)
   (Please add more test options if needed)