[cmake-developers] [CMake 0011487]: multiple ctest_test() calls with *_LABEL flag not handled right
Mantis Bug Tracker
mantis at public.kitware.com
Fri Nov 19 15:23:36 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11487
======================================================================
Reported By: Clinton Stimpson
Assigned To:
======================================================================
Project: CMake
Issue ID: 11487
Category: CTest
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-11-19 15:23 EST
Last Modified: 2010-11-19 15:23 EST
======================================================================
Summary: multiple ctest_test() calls with *_LABEL flag not
handled right
Description:
a call to ctest_test(EXCLUDE_LABEL ...) messes up tests are run in a subsequent
call to ctest_test()
To compare, the "EXCLUDE" option doesn't do this.
Steps to Reproduce:
=== CMakeLists.txt ===
enable_testing()
add_test(test1 ${CMAKE_COMMAND} --help)
set_tests_properties(test1 PROPERTIES LABELS test1)
add_test(test2 ${CMAKE_COMMAND} --help)
set_tests_properties(test2 PROPERTIES LABELS test2)
=== test.ctest ===
get_filename_component(ROOT "." ABSOLUTE)
set(CTEST_SOURCE_DIRECTORY ${ROOT})
set(CTEST_BINARY_DIRECTORY ${ROOT}/build)
# need configured build to start with
ctest_start(Experimental)
ctest_test(EXCLUDE_LABEL test1)
#ctest_test(EXCLUDE test1)
ctest_start(Experimental)
ctest_test(INCLUDE_LABEL test1)
ctest_test(INCLUDE test1)
ctest_test()
Additional Information:
ctest -V -S test.ctest gives:
Run dashboard with model Experimental
...
Start 2: test2
1/1 Test http://public.kitware.com/Bug/view.php?id=2: test2
............................ Passed 0.02 sec
...
Run dashboard with model Experimental
...
No tests were found!!!
...
No tests were found!!!
...
No tests were found!!!
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-11-19 15:23 Clinton StimpsonNew Issue
======================================================================
More information about the cmake-developers
mailing list