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't have the 'mail -s test ... ' 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 <<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>> 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 <<a href="mailto:sylvainjaume@gmail.com">sylvainjaume@gmail.com</a>> wrote:<br>> I tried to set up email notification for my project.<br>
> I added a DartConfig.cmake to my project:<br><br></div>What'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 "gdcm")<br>
SET (CTEST_NIGHTLY_START_METHOD "21:00:00 CEST")<br>SET (CTEST_DROP_METHOD "xmlrpc")<br>SET (CTEST_DROP_SITE "<a href="http://dash:8081" target="_blank">http://dash:8081</a>")<br>SET (CTEST_DROP_LOCATION "zorglub")<br>
SET (CTEST_COMPRESSION_SUBMISSION ON)<br><div class="Ih2E3d"><br><br>> # Continuous email delivery variables<br>> SET(CONTINUOUS_FROM "my_email_address")<br>> SET(SMTP_MAILHOST "my_smtp_server")<br>
> SET(CONTINUOUS_MONITOR_LIST "my_email_address")<br>> SET(CONTINUOUS_BASE_URL "${PROJECT_URL}/Testing")<br>><br>> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_FAILURES ON)<br>> SET(DELIVER_BROKEN_BUILD_EMAIL "Continuous Nightly")<br>
> SET(EMAIL_FROM "my_email_address")<br>> SET(DARTBOARD_BASE_URL "${PROJECT_URL}/Testing")<br>><br>> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_CONFIGURE_FAILURES 1)<br>> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_BUILD_ERRORS 1)<br>
> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_BUILD_WARNINGS 1)<br>> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_NOT_RUNS 1)<br>> 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>> In Project.xml I added:<br>><br>> <Property name="mail.host">my_smtp_server</Property><br>> <Property name="mail.port">25</Property><br>
> <Property name="mail.from">my_email_address</Property><br>> <Property name="mail.transport.protocol">smtp</Property><br><br></div>Let's do it simple:<br>1. Is you user allowed to post mail ?<br>
2. What happen when you do:<br><br> $ mail -s test sylvain.jaume AT <a href="http://gmail.com" target="_blank">gmail.com</a><br>> just a test<br>> .<br><div class="Ih2E3d"><br>> Where my_smtp_server is the smtp server I use with another build system and<br>
> it works.<br>><br>> Submissions are fine but I receive no email when there is a build error.<br>> 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>