[Dart] Custom error strings?
Andy Cedilnik
andy.cedilnik at kitware.com
Mon May 15 15:51:16 EDT 2006
Hi Joey,
Here is example DartTestfile.txt:
# CMake generated Testfile for
# Source directory: /home/andy/vtk/CMake/Source/kwsys
# Build directory: /home/andy/vtk/CMake-bin/Tests/CTestTest/kwsysBin
ADD_TEST(kwsys.testRegistry
"/home/andy/vtk/CMake-bin/Tests/CTestTest/kwsysBin/testRegistry")
SET_TESTS_PROPERTIES(kwsys.testRegistry PROPERTIES
FAIL_REGULAR_EXPRESSION "ERROR;FAIL;Test\
failed" PASS_REGULAR_EXPRESSION "Test\ passed")
ADD_TEST(kwsys.testFail
"/home/andy/vtk/CMake-bin/Tests/CTestTest/kwsysBin/testFail")
SET_TESTS_PROPERTIES(kwsys.testFail PROPERTIES WILL_FAIL "ON")
Looks good?
Andy
Joey Mukherjee wrote:
> Two things:
>
> 1) Can we still use this if we are not using cmake? Is this something
> I can place in the DartConfiguration.tcl?
> 2) The help command in cmake I think has an error:
>
> FAIL_REGULAR_EXPRESSION: If set, if the output will match to
> one of
> specified regular expressions, the test will fail.
>
> Example: PASS_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed"
>
> I believe the PASS should be a FAIL.
>
> This was in the 2.4.1 beta.
>
> Thanks!
>
> On May 11, 2006, at 11:49 AM, Andy Cedilnik wrote:
>
>> In CTest 2.2 and newer you can set PASS_REGULAR_EXPRESSION and
>> FAIL_REGULAR_EXPRESSION.
>>
>> Please run:
>>
>> cmake --help-command SET_TESTS_PROPERTIES
>>
>
>> Joey Mukherjee wrote:
>>
>>> Is there a way to make ctest have a custom string indicate an error
>>> which can then be reported by Dart?
>>>
>>> My problem is our build tool has a couple strings it prints out
>>> which indicate a file is missing; however, ctest/dart do not see
>>> this as an error so it looks like everything is fine.
>>
>
> Joey
>
--
Andy Cedilnik
Kitware Inc.
More information about the Dart
mailing list