[CMake] ADD_TEST(...) doesn't output any tests into CTestTestfile.cmake (cmake 2.6-patch 0)
Pavel Shevaev
pacha.shevaev at gmail.com
Wed Mar 4 02:39:21 EST 2009
> So, this should fix the problem:
>
> add_subdirectory(${foo_SOURCE_DIR}/../shared/lib/boost boost_lib)
Thanks, it has worked indeed, however now I'm experiencing the
following problem, running "make Experimental" yields this:
================================
kurluka ~/foo/build$ make Experimental
Site: kurluka
Build name: Linux-c++
Create new tag: 20090304-0728 - Experimental
Start processing tests
Configure project
Each . represents 1024 bytes of output
.. Size of output: 1K
Build project
Each symbol represents 1024 bytes of output.
'!' represents an error and '*' a warning.
.. Size of output: 1K
0 Compiler errors
0 Compiler warnings
Test project /home/../foo/build
**** No tests were found!!! ****
Performing coverage
Cannot find any coverage files. Ignoring Coverage request.
Submit files (using http)
Using HTTP submit method
Drop site: http://localhost/cdash/submit.php?project=game
Uploaded: /home/../foo/build/Testing/20090304-0728/Build.xml
Uploaded: /home/../foo/build/Testing/20090304-0728/Configure.xml
Uploaded: /home/../foo/build/Testing/20090304-0728/Test.xml
Submission successful
Built target Experimental
================================
Basically it says, "No tests were found!!!" while CTestTestfile.cmake contains:
=================================
ADD_TEST(FooUnitTests "/home/.../foo/tests/unit/run")
SUBDIRS(boost_lib)
...
SUBDIRS(src)
SUBDIRS(unittest_lib)
==================================
What can be wrong again?
I also don't quite understand how CTest works, am I right in thinking
CTest just executes the test binary and depending on exit code decides
whether tests passed or not?
Thanks for any help in advance!
--
Best regards, Pavel
More information about the CMake
mailing list