<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello,<div><br></div><div>In the ADD_TEST command in the example below I mentioned the test name is test1, is this only a naming thing or does it mean</div><div>that I have to have an actual file called test1 in the system to be run by the executable? Sorry, I read the documentation several times and </div><div>still don't understand as somewhere on the documentation it also mentions test files, I am not sure what to put inside this test file though.</div><div><br></div><div>Should I put this ADD_TEST inside the test file or the CMakeLists.txt?</div><div><br></div><div>Thanks</div><div><br></div><div>Alex<br><br><br>> Date: Fri, 28 Aug 2009 13:11:01 -0400<br>> Subject: Re: [CMake] generating CTest tests<br>> From: drescherjm@gmail.com<br>> To: aditya15417@hotmail.com; cmake@cmake.org<br>> <br>> On Fri, Aug 28, 2009 at 12:57 PM, Aditya<br>> Herlambang&lt;aditya15417@hotmail.com> wrote:<br>>> Hello,<br>>> I am really a total noob in this CTest stuffs, I read the documentation and<br>>> it says that I need to use the ADD_TEST method to test an executable right?<br>>> the format is the following:<br>>> ADD_TEST(test1 "../build/executable" "1")<br>>><br>>> where test1 is the name of the test and 1 is the argument passed to the<br>>> executable. Question is how do I specify if the test pass then print<br>>> something, otherwise<br>>> print the other thing?<br>>><br>> <br>> You should not be printing anything. I mean from your main return 0<br>> for success any thing non zero for failure.<br>> <br>> John<br></div><br /><hr />With Windows Live, you can organize, edit, and  <a href='http://www.microsoft.com/indonesia/windows/windowslive/products/photo-gallery-edit.aspx' target='_new'>share your photos.</a></body>
</html>