Did you call ENABLE_TESTING before any ADD_TEST calls in your CMakeLists.txt?<div><br><br><div class="gmail_quote">On Wed, Mar 4, 2009 at 2:39 AM, Pavel Shevaev <span dir="ltr"><<a href="mailto:pacha.shevaev@gmail.com">pacha.shevaev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> So, this should fix the problem:<br>
><br>
> add_subdirectory(${foo_SOURCE_DIR}/../shared/lib/boost boost_lib)<br>
<br>
</div>Thanks, it has worked indeed, however now I'm experiencing the<br>
following problem, running "make Experimental" yields this:<br>
<br>
================================<br>
kurluka ~/foo/build$ make Experimental<br>
Site: kurluka<br>
Build name: Linux-c++<br>
Create new tag: 20090304-0728 - Experimental<br>
Start processing tests<br>
Configure project<br>
Each . represents 1024 bytes of output<br>
.. Size of output: 1K<br>
Build project<br>
Each symbol represents 1024 bytes of output.<br>
'!' represents an error and '*' a warning.<br>
.. Size of output: 1K<br>
0 Compiler errors<br>
0 Compiler warnings<br>
Test project /home/../foo/build<br>
**** No tests were found!!! ****<br>
Performing coverage<br>
Cannot find any coverage files. Ignoring Coverage request.<br>
Submit files (using http)<br>
Using HTTP submit method<br>
Drop site: <a href="http://localhost/cdash/submit.php?project=game" target="_blank">http://localhost/cdash/submit.php?project=game</a><br>
Uploaded: /home/../foo/build/Testing/20090304-0728/Build.xml<br>
Uploaded: /home/../foo/build/Testing/20090304-0728/Configure.xml<br>
Uploaded: /home/../foo/build/Testing/20090304-0728/Test.xml<br>
Submission successful<br>
Built target Experimental<br>
================================<br>
<br>
Basically it says, "No tests were found!!!" while CTestTestfile.cmake contains:<br>
<br>
=================================<br>
ADD_TEST(FooUnitTests "/home/.../foo/tests/unit/run")<br>
SUBDIRS(boost_lib)<br>
...<br>
SUBDIRS(src)<br>
SUBDIRS(unittest_lib)<br>
==================================<br>
<br>
What can be wrong again?<br>
<br>
I also don't quite understand how CTest works, am I right in thinking<br>
CTest just executes the test binary and depending on exit code decides<br>
whether tests passed or not?<br>
<br>
Thanks for any help in advance!<br>
<font color="#888888"><br>
--<br>
Best regards, Pavel<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>