Commit Graph

241 Commits

Author SHA1 Message Date
Jonas Maebe
04df0d537e * more finegrained parallelism support for testsuite runs: the tests are no
longer split per directory, but in chunks of 100 tests (configurable via
    the new CHUNKSIZE=xxx Makefile parameter), which then all can be checked
    in parallel
   o dependencies between tests are handled by always putting tests whose
     name is the same except for the last character into the same chunk
   o as previously, -jx can only be used for the "all" target, other targets
     cannot be executed in parallel
   o the "units" directory has been renamed "tstunits" because otherwise
     "make distclean" will remove it entirely now that the main tests
     makefile also compiles a program

git-svn-id: trunk@21479 -
2012-06-03 17:56:28 +00:00
Jonas Maebe
a6375ba385 * don't limit the full path of reslogfile to 32 characters
git-svn-id: trunk@21430 -
2012-05-29 09:21:07 +00:00
Jonas Maebe
252483ffd8 + support for running the testsuite in parallel. Note that only the "all"
target can be run in parallel, so "clean", "digest" and/or "dbdigest"
    have to be run in separate make invocations if you wish to use -j for
    running the testsuite

git-svn-id: trunk@21406 -
2012-05-28 09:14:56 +00:00
pierre
02f8739bca Fix win32 compilation
git-svn-id: trunk@21346 -
2012-05-20 17:03:01 +00:00
marco
90adaeb652 * routine to transform result of fpsystem to old "shell" convention added.
git-svn-id: trunk@21341 -
2012-05-20 11:29:22 +00:00
marco
7ae1db2e01 * replaced deprecated shell by fpsystem.
git-svn-id: trunk@21327 -
2012-05-19 09:00:37 +00:00
Jonas Maebe
9e0bc92b88 * prevent crash in dotest in case a test file contains a line at the start
with only whitespace on it (such as webtbf/tw21873.pp)

git-svn-id: trunk@21119 -
2012-04-29 17:36:11 +00:00
pierre
1b3fd997fc + Regenerate all Makefiles's after adding x86_64 netbsd target
git-svn-id: trunk@21031 -
2012-04-24 23:15:18 +00:00
Jonas Maebe
d68d9ba1a0 * don't pass -blibpath parameter for %needlibrary tests on AIX: the linker
doesn't recognise it (even though it's documented) and it's not needed

git-svn-id: trunk@20822 -
2012-04-11 18:05:02 +00:00
Jonas Maebe
44bd889b9b * regenerated Makefiles with AIX support
git-svn-id: trunk@20812 -
2012-04-11 18:03:57 +00:00
Jonas Maebe
9efe09a827 + aix support for testsuite helper programs
git-svn-id: trunk@20806 -
2012-04-11 18:02:23 +00:00
pierre
2c4d8cc9d9 Add x86_64-openbsd target in Makefiles
git-svn-id: trunk@20723 -
2012-04-06 16:49:08 +00:00
pierre
c5f9b66e51 * Fix bug in DelOptions leading to infinite loop:(
git-svn-id: trunk@20721 -
2012-04-06 15:15:48 +00:00
pierre
c968fcbfaf * Fix PuTTY plink usage with -load option
git-svn-id: trunk@20703 -
2012-04-04 04:56:20 +00:00
pierre
0658a6ee88 * Move + after objfpc to use ansistrings
git-svn-id: trunk@20644 -
2012-03-28 08:10:46 +00:00
pierre
88b00552a2 + Add support for target specific options
example:  %OPT=-gl win32%-WN
    if % is found in OPT list, the string after % is only added
    to the compiler options if current target is
    contained in the list of the string before the % sign.
  + Add %DELOPT dotest option.
    can be used in two variants
    %DELOPT=-Crio
    will suppress -Criot from TEST_OPT if it appears exactly
    (-Criot will not match).
    %DELOPT=-C* will suppress all options starting with -C.

git-svn-id: trunk@20640 -
2012-03-27 14:26:24 +00:00
pierre
2e4b7ae05c Apply fixes from Sven Barth
git-svn-id: trunk@19686 -
2011-11-25 16:53:20 +00:00
pierre
e366c013e3 * fix -rpath passing to linker for Windows OS by
avoiding use of single quotes.
  * Use 'ulimit -t ' instead of timeout for bash shells.

git-svn-id: trunk@19477 -
2011-10-12 12:33:24 +00:00
pierre
82fc72ea8d * New code to handle zip file containing longlog instead of invidual comp/execute log/elg files
git-svn-id: trunk@19348 -
2011-10-03 21:51:17 +00:00
pierre
732adeaa66 * Added TU_CATEGORY_FK and Svn revs to RunOverview
git-svn-id: trunk@19347 -
2011-10-03 21:48:53 +00:00
pierre
24d489f7f7 * Lowercase CompilerCPU and CompilerTarget
at startup to avoid need of constant use of lowercase function.
 + Added RemoteShell, RemoteShellBase and RemoteShellNeedsExport to
   be able to set LD_LIBRARY_PATH on remote connections.
   (Other checks might be necessary to avoid use of wrong environment
    settings for other shells).
 + TargetIsUnix: New variable, based on UNIX presence within
   target_info.extadefines field.

 + SpliTFileBase: New function returning only base part.

 + LibraryExists: New function to see if a library was created,
   Library name is also constructed based on target_info fields.
 * ExecuteRemote,ExecuteEmulated: moved to global scope to allow use at start
   to check type of shell used.
 * RunExecutable: Adapted to set env. varaible LD_LIBRARY_PATH for remote
   connections.
 + MaybeCopyFiles: New function to separate file copy operations.
 + SetRemoteConfiguration: New function to set RemoteShellXXX variables.
 * RunTest: Use LibraryExists to avoid running a library
   and possibly copy library to remote.

git-svn-id: trunk@19331 -
2011-10-03 06:23:38 +00:00
pierre
ea6138cffa * Add Category and svn information
git-svn-id: trunk@19077 -
2011-09-16 16:07:48 +00:00
pierre
a6b290c97a * More dual result table support
git-svn-id: trunk@18938 -
2011-09-01 16:29:28 +00:00
pierre
4c0a04bc48 * Support more tags/branches for sources
git-svn-id: trunk@18937 -
2011-09-01 15:40:20 +00:00
pierre
c0cfded280 * Partial support for OLDTESTRESULTS table
git-svn-id: trunk@18936 -
2011-09-01 15:16:31 +00:00
pierre
752241adba Reorder some fields
git-svn-id: trunk@18935 -
2011-09-01 14:34:54 +00:00
pierre
aa62380d72 Display all svn revisions for DEBUGCGI or listall
git-svn-id: trunk@18933 -
2011-09-01 14:09:31 +00:00
pierre
1c2a5f9819 + Update all Makefile's modified by
change in utils/fpcm/fpcmake.ini in prevous commit.

  Adapt also other files to that change:

  * compiler/globals.pas: Replace $FPCTARGET by os_string if
  tf_use_8_3 flag is set for target_info also.

  * tests/Makefile.fpc: Modify TEST_TARGETSUFFIX in the same way
  as TARGETSUFFIX was modified in previous commit.

  * tests/utils/dotest.pp:
    + New variable UseOSOnly, set to true if only target OS name
    should be used for subdirectories.

git-svn-id: trunk@18228 -
2011-08-16 20:10:19 +00:00
marco
043e9b2ec2 * Trunk version to 2.7.1
git-svn-id: trunk@18075 -
2011-08-03 13:59:33 +00:00
marco
39d7bb511d * Regenned all makefiles before 2.6.x branching.
git-svn-id: trunk@18073 -
2011-08-03 13:41:52 +00:00
pierre
c529921fc8 * clarify environment processing
git-svn-id: trunk@17942 -
2011-07-06 16:23:10 +00:00
pierre
405655ba60 + Skip library tests for go32v2 target
git-svn-id: trunk@17817 -
2011-06-24 10:11:19 +00:00
pierre
256c58d670 * Fix SetTargetDirectoriesStyle , needed a call to GetCompilerTarget first
git-svn-id: trunk@17796 -
2011-06-22 15:42:58 +00:00
pierre
9f919b942a + Support !ENV_VAR option and separate ExeExt for target from SrcExeExt for cross-testing
git-svn-id: trunk@17696 -
2011-06-08 14:55:30 +00:00
Jonas Maebe
e8f654ffa5 * fixed ForceExtension() after r16905 in case the input did not have an
exitension (it cut off the last character of the filename in that case)

git-svn-id: trunk@16911 -
2011-02-12 21:13:51 +00:00
pierre
acb2aca3d0 * Remove limitations to 255 chars of shortstrings
* Better handle relative remotepath:
   - use cd to go to this path,
   - but call executable using only ./execfilename
 * Keep .exe suffix for cygwin style ssh for go32v2, win32 or win64 targets

git-svn-id: trunk@16905 -
2011-02-11 10:47:21 +00:00
pierre
e3b56a1bcb + TargetHasDosStyleDirectories, TargetAmigaLike,
TargetIsMacOS: New variables, used in new function IsAbsolute.
  SetTargetDirectoriesStyle;, IsMacFullPath, IsAbsolute: New functions.
  CopyFile: Changed from procedure to function returning the
  number of copied chars.
  RunCompiler: Add compilation type for benchmark -D option.
  RunExecutable: Add execution time for benchmark -D option.
  Also report Exitcode on failure if no output is written
  (i.e. CopyFile returns zero written chars).
  HelpScreen function: Order options alphabetically.
  Add new -D benchmark option.

git-svn-id: trunk@16757 -
2011-01-13 14:06:24 +00:00
pierre
365c0d82bf * Fix windows code to avoid closing unopened files
git-svn-id: trunk@16342 -
2010-11-14 10:38:03 +00:00
Jonas Maebe
8b0301409a + i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and
later: the same as i386/darwin, except
      a) uses the non-fragile Objective-C ABI/runtime
      b) does not require stubs for direct calls/jumps (not required for
         i386/darwin under 10.6 and later either, but still generated
         there for backwards compatibility)
      c) only the same packages are enabled as for ARM/Darwin
      d) MacOSAll is compiled specifically for the iPhoneSimulator SDK
    This target also defines the symbol "darwin" apart from the target
    name "iphonesim" for source code compatibility reasons.

git-svn-id: trunk@16065 -
2010-09-29 21:56:47 +00:00
pierre
1fcd37809b * Fix compilation for go32v2
git-svn-id: trunk@15700 -
2010-08-03 11:42:40 +00:00
pierre
2646db8036 * Add is_new boolean arg to AddTestResult, to e able to know
if the call really added a new result.

git-svn-id: trunk@14807 -
2010-01-26 12:54:48 +00:00
pierre
85fef0d52d * Improve test result insertion into database
git-svn-id: trunk@14804 -
2010-01-25 16:51:50 +00:00
pierre
95b04cea9d * fix two string errors
git-svn-id: trunk@14799 -
2010-01-25 10:46:29 +00:00
pierre
5fa9463074 * remove two warnings
git-svn-id: trunk@14778 -
2010-01-22 23:32:51 +00:00
pierre
def7ffbea5 * Add some additional fields to testrun table
git-svn-id: trunk@14777 -
2010-01-22 23:09:02 +00:00
pierre
be36d13e73 + Update for correct cleaning of dbdigest executable
git-svn-id: trunk@14774 -
2010-01-22 16:03:40 +00:00
pierre
d5f0cc1f7d + Add explicit Port for mysql connection
git-svn-id: trunk@14771 -
2010-01-22 15:33:34 +00:00
pierre
9c487c236a * more updates for test history
git-svn-id: trunk@14769 -
2010-01-22 10:17:32 +00:00
pierre
134331f129 * more updates for test history
git-svn-id: trunk@14627 -
2010-01-12 17:32:39 +00:00
marco
0b7e3d14e4 * cleanup of redir. I hope this solves win32 lfn problems, while preserving execinheritshandles functionality.
* removed TP/1.0 
    * switched windows to sysutils.executeprocess using new execinheritshandles 
    * new execinherits executeprocess implementation local for 2.4.0 (and 2.4.1, though that is no longer necessary   after merge)  
  

git-svn-id: trunk@14618 -
2010-01-11 19:45:24 +00:00