Salut Mathieu,<br><br>I have a CTestConfig.cmake and a DartConfig.cmake<br>I wrote in my CMakeLists.txt:<br>ENABLE_TESTING()<br>INCLUDE(Dart)<br><br>But not INCLUDE(CTest)<br>Is there a difference between INCLUDE(CTest) and ENABLE_TESTING()?<br>
Should I remove INCLUDE(Dart) and move the commands from the DartConfig.cmake to the CTestConfig.cmake?<br><br>The user has an account and is allowed to send mail. I setup Project.xml for the Dart server to use smtp.<br>The server is on Windows and I don&#39;t have the &#39;mail -s test ... &#39; command under cygwin. I installed exim and sendmail.<br>
<br>Sylvain<br><br><div class="gmail_quote">On Feb 12, 2008 2:47 AM, Mathieu Malaterre &lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Salut Sylvain,<br><div class="Ih2E3d"><br>On Feb 7, 2008 7:57 PM, Sylvain Jaume &lt;<a href="mailto:sylvainjaume@gmail.com">sylvainjaume@gmail.com</a>&gt; wrote:<br>&gt; I tried to set up email notification for my project.<br>
&gt; I added a DartConfig.cmake to my project:<br><br></div>What&#39;s a DartConfig.cmake file ? If you are doing a INCLUDE(CTest),<br>you should have instead a CTestConfig.cmake. It can be simple as that:<br><br>SET (CTEST_PROJECT_NAME &quot;gdcm&quot;)<br>
SET (CTEST_NIGHTLY_START_METHOD &quot;21:00:00 CEST&quot;)<br>SET (CTEST_DROP_METHOD &quot;xmlrpc&quot;)<br>SET (CTEST_DROP_SITE &quot;<a href="http://dash:8081" target="_blank">http://dash:8081</a>&quot;)<br>SET (CTEST_DROP_LOCATION &quot;zorglub&quot;)<br>
SET (CTEST_COMPRESSION_SUBMISSION ON)<br><div class="Ih2E3d"><br><br>&gt; # Continuous email delivery variables<br>&gt; SET(CONTINUOUS_FROM &quot;my_email_address&quot;)<br>&gt; SET(SMTP_MAILHOST &quot;my_smtp_server&quot;)<br>
&gt; &nbsp;SET(CONTINUOUS_MONITOR_LIST &quot;my_email_address&quot;)<br>&gt; SET(CONTINUOUS_BASE_URL &quot;${PROJECT_URL}/Testing&quot;)<br>&gt;<br>&gt; SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_FAILURES ON)<br>&gt; SET(DELIVER_BROKEN_BUILD_EMAIL &quot;Continuous Nightly&quot;)<br>
&gt; &nbsp;SET(EMAIL_FROM &quot;my_email_address&quot;)<br>&gt; SET(DARTBOARD_BASE_URL &quot;${PROJECT_URL}/Testing&quot;)<br>&gt;<br>&gt; SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_CONFIGURE_FAILURES 1)<br>&gt; SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_BUILD_ERRORS 1)<br>
&gt; &nbsp;SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_BUILD_WARNINGS 1)<br>&gt; SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_NOT_RUNS 1)<br>&gt; SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_FAILURES 1)<br><br><br></div>I do not believe the email can be configured from the client side. I<br>
believe this is from the Dart vintage (or whatever the name is).<br><div class="Ih2E3d"><br>&gt; In Project.xml I added:<br>&gt;<br>&gt; &lt;Property name=&quot;mail.host&quot;&gt;my_smtp_server&lt;/Property&gt;<br>&gt; &nbsp;&lt;Property name=&quot;mail.port&quot;&gt;25&lt;/Property&gt;<br>
&gt; &nbsp;&lt;Property name=&quot;mail.from&quot;&gt;my_email_address&lt;/Property&gt;<br>&gt; &nbsp;&lt;Property name=&quot;mail.transport.protocol&quot;&gt;smtp&lt;/Property&gt;<br><br></div>Let&#39;s do it simple:<br>1. Is you user allowed to post mail ?<br>
2. What happen when you do:<br><br> &nbsp;$ mail -s test sylvain.jaume AT <a href="http://gmail.com" target="_blank">gmail.com</a><br>&gt; just a test<br>&gt; .<br><div class="Ih2E3d"><br>&gt; Where my_smtp_server is the smtp server I use with another build system and<br>
&gt; it works.<br>&gt;<br>&gt; Submissions are fine but I receive no email when there is a build error.<br>&gt; Is there a log I can check for email notification error?<br><br></div>Depends on your agent. You should definitely post to the right Ml to<br>
get a better answer.<br>I am using postfix, I had to edit: /etc/postfix/main.cf (dont forget postalias)<br><br>As for mail stuff, on unix, this is typically: /var/log/mail.* (do ls<br>-ltr to check which one was last edited).<br>
<br><br>Good luck,<br>--<br><font color="#888888">Mathieu<br></font></blockquote></div><br>