TestingSetup.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <!--#include virtual="/CMake/HTML/Head.html"-->
  4. <body bgcolor="#FFFFFF" leftmargin=0 topmargin=0 text="black" >
  5. <!--#include virtual="/CMake/HTML/Table.html"-->
  6. <tr>
  7. <!--#include virtual="/CMake/HTML/SideBar.html"-->
  8. <td width="550" valign="top" bgcolor="#FFFFFF">
  9. <div align="left">
  10. <font size=5>Help improve the quality of CMake</font> by running a
  11. nightly dashboard build on your machine. If you would like to contribute
  12. to the CMake project by building a
  13. nightly dashboard build, you can follow these instructions.
  14. <ul>
  15. <li>Obtain a copy of the Dart (<a href="http://public.kitware.com/Dart">http://public.kitware.com/Dart</a>) client from cvs.
  16. <br>
  17. cvs -d :pserver:[email protected]:/Dart/cvsroot login
  18. (password is dart)
  19. <br>
  20. cvs -d :pserver:[email protected]:/Dart/cvsroot co Dart
  21. <br>
  22. <li> Install tcl.
  23. <li> Configure your CMake build to find Tcl and Dart.
  24. <li> Test your setup by typing make Experimental, then check the CMake dashboard in the next hour to see if your results are available.
  25. </ul>
  26. Once you are able to submit experimental builds, the next step is setting up a nightly build. The nightly build works in almost the same way, but
  27. needs to be run each night by crontab or some other scheduling program. Getting environment variables correct can be difficult. Several examples are included here.
  28. <h2>Examples</h2>
  29. <ul>
  30. <li> Windows Visual C++ 6.0 Nightly build
  31. <br>
  32. cmakeNightlyVC.sh - A cygwin shell script to build a cmake dashboard.
  33. <PRE>
  34. cd //c/hoffman/Dart
  35. cvs update -dAP
  36. cd //c/hoffman/CMake
  37. cvs update -dAP
  38. cd //c/hoffman
  39. rm -rf CMake-vc-dashboard
  40. mkdir CMake-vc-dashboard
  41. cd CMake-vc-dashboard
  42. echo -e DART_ROOT:PATH=c:/Hoffman/Dart\\nMAKEPROGRAM:FILEPATH=msdev > CMakeCache.txt
  43. /cygdrive/c/hoffman/CMake/Source/cmake ../CMake
  44. msdev CMake.dsw /MAKE "Nightly - Win32 Debug" /BUILD
  45. </PRE>
  46. <br>
  47. cmakeNightlyVC.bat - A windows batch file that can run cmakeNightlyVC.sh and be used from the microsoft program scheduler.
  48. <PRE>
  49. bash --login //c/Hoffman/cmakeNightlyVC.sh
  50. </PRE>
  51. <br>
  52. <li> Solaris CC crontab scripts
  53. <br>
  54. dashboardCMake.csh -- a csh script to build cmake for a sun
  55. <PRE>
  56. #!/bin/csh
  57. cd ${HOME}/Dart
  58. cvs update -dAP
  59. cd ${HOME}/CMake
  60. cvs update -dAP
  61. cd ${HOME}
  62. # clean the entire build directory
  63. rm -rf CMake-CC-dashboard
  64. mkdir CMake-CC-dashboard
  65. cd CMake-CC-dashboard
  66. # preload the Dart path into the cache
  67. echo DART_ROOT:PATH=/disk2/home/hoffman/Dart > CMakeCache.txt
  68. setenv CXX CC
  69. setenv CC cc
  70. setenv CXXFLAGS ""
  71. ../CMake/configure
  72. gmake Nightly
  73. </PRE>
  74. </PRE>
  75. <br>dashboardCronEntry.csh -- a csh script that can be run from cron
  76. <PRE>
  77. <PRE>
  78. #!/bin/csh
  79. /bin/rm -f nightlyBuild.out
  80. csh ${HOME}/dashboardCMake.csh > nightlyBuild.out
  81. </PRE>
  82. </PRE
  83. <br> contab entry for above
  84. <PRE>
  85. <PRE>
  86. # do a nightly cmake
  87. 0 4 * * * /disk2/home/hoffman/dashboardCronEntry.csh
  88. </PRE>
  89. </PRE>
  90. </div>
  91. </td>
  92. </tr>
  93. </table>
  94. </td>
  95. </tr>
  96. </table>
  97. </body>
  98. </html>