Commit graph

26 commits

Author SHA1 Message Date
Martin Beaudoin
a2496c1388 Bugfix for the testHarness runFunctions:
When using the '-l' option for the runApplicationAndReportOnError macro in the tutorials Allrun files,
  the default log filename will be overriden. In case of a runtime error for a testHarness test, we
  need to dump the last 50 lines from this filename instead of using the default log filename.
2019-07-15 23:13:43 -04:00
Henrik Rusche
5c4b068ebe Enabled PV Reader compilation with cmake AND wmake build 2018-05-29 22:56:59 +02:00
Henrik Rusche
48926a792f Transition to cmake build system (most libs and utils & some apps compile) 2018-05-23 15:26:37 +02:00
Martin Beaudoin
14c43b4728 Bugfix for test harness with bad characters in hostname string:
Using a pre-existing CTest command option for removing such characters.
Just a cleaner implementation for this bugfix.
2018-04-16 00:10:22 -04:00
Martin Beaudoin
2adbd0457a Correction for a problem with newer versions of CMake that are refusing to upload the test harness
results  to the CDash server.
The generated error message is the following: "Error message was: Illegal characters found in URL"

Diagnostic:
    If the environment variable CDASH_SUBMIT_LOCAL_HOST_ID is not initialized, the FQN hostname of the
system will be picked by the CMake/CTest scripts. The CTest internal system command used for retrieving
the FQN hostname is indeed leaving a carriage return in the returned hostname string.
That string is in turn reused to construct an URL that will be shared with the CDash service. The presence
of such characters (\n and \r) is no longer accepted by newer versions of CTest/CMake.

Solution:
    The solution is simply to check and remove such characters from the hostname string.
2018-04-15 21:51:43 -04:00
Hrvoje Jasak
5c44761ab3 Reset build directory name: 4.1 2018-02-20 17:56:27 +00:00
Hrvoje Jasak
14e1dd2233 Update test harness to 4.0. Cesare Guardino 2016-06-07 16:28:09 +01:00
Henrik Rusche
978891cbc3 Bump test loop location 2016-05-25 15:36:15 +02:00
Martin Beaudoin
f6f896a576 testHarness: adjusting the Makefile generator for cmake on Windows 2015-09-23 15:18:27 +01:00
Martin Beaudoin
0a48ccb4d2 testHarness: adjusting the ctest command invocation for scripts
under Windows/Mingw
2015-09-23 15:18:27 +01:00
Martin Beaudoin
7d10a1bbff testHarness: adjusting the Makefile generator for cmake on Windows 2015-09-23 15:18:27 +01:00
Martin Beaudoin
209da85a76 testHarness: improved CTest coding. Adjustments for the Windows port. 2015-09-23 15:18:27 +01:00
Martin Beaudoin
9826a2d0c3 testHarness:
For each test case, add a label from the name of the top most tutorial
directories (eg: basic, incompressible, etc). We will use this label in order
to categorize the various test cases under a more generic 'topic', so we can
for instance limit the testharness to only the suite of 'compressible' test
cases, etc., simply by using the ctest -L command.

ctest --print-labels will print the list of all available labels.
2015-09-23 15:18:26 +01:00
Martin Beaudoin
3c9b632afb testHarness:
Choosing better names for the optional site and user CTestConfig.cmake files.
Adding a comment about the expected locations for those 2 files.
2015-09-23 15:18:26 +01:00
Martin Beaudoin
a6bccbe942 testHarness:
allow overriding CTestConfig.cmake values for using local site CDash service or
for using personnal (user space) CDash service. The expected order of precedence
is respected: the personnal settings will override the site settings, and the
site settings will override the default settings for the foam-extend CDash
service hosted on SourceForge.net.
2015-09-23 15:18:26 +01:00
Martin Beaudoin
f5816ce345 testHarness: adding support for CDash/CTest subprojects 2015-09-23 15:18:26 +01:00
Martin Beaudoin
7004961828 testHarness: modifications for running the tests in parallel 2015-08-26 10:41:09 +01:00
Bernhard F.W. Gschaider
403fda0869 Adaption of CTest-Scripts for Mercurial 2015-08-24 20:54:44 +01:00
Martin Beaudoin
6cebda5e41 testHarness: adding the environment variable CDASH_SCM_INFO in order to override
the SCM information that gets appended at the end of the buildname string.

The buildname string is the string that will identify your test run when
published on the foam-extend CDash service.

When using git, this SCM information is picked up automatically from the CTest
script: -git-branch=the_git_branch_name-git-rev=the_git_revision_number.

But when using a non-git SCM (mercurial, etc), when the foam-extend source
code you are testing is not under a valid git repository, or simply when a user
needs to add more details to the standard SCM information (branch name and
revision number), then setting the environment variable CDASH_SCM_INFO to the
proper information will allow you to override the suffix we add at the end of
the buildname.

Please note that in order to keep the CMake script simple, for non-git
repositories, the fallback solution to try grabbing the information through
Mercurial has been removed. Please use the CDASH_SCM_INFO environment
varible instead.
2015-08-15 14:23:15 -04:00
Martin Beaudoin
25357dc569 testHarness: adjusting some messages for foam-extend 2015-08-06 12:16:44 +01:00
Martin Beaudoin
e7d09787c8 testHarness: various adjustments for foam-extend 3.2. The results will now be reported on the foam-extend project CDash service on SourceForge.net 2015-06-17 23:07:46 -04:00
Martin Beaudoin
cf6fd9f57a testHarness: adding git revision number to buildName 2015-05-28 12:13:15 -04:00
Henrik Rusche
3c5ba8da44 bump version number 2014-06-01 18:23:43 +02:00
Bernhard F.W. Gschaider
3e51fd20a2 Fix extra apostrophes added to the BUILDNAME which were added by a previous change 2014-05-29 21:31:56 +02:00
bgschaid@ice-sf.at
ee28daa3a5 Improve BUILDNAME in case of mercurial. Collateral damage: Timeout consistent 2014-05-16 10:00:07 +00:00
Hrvoje Jasak
45fc0403b3 Initial update of test harness. 2013-12-16 14:35:43 +00:00