Testing.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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>
  11. If you would like to contribute to the CMake project by building a
  12. nightly dashboard build, you can follow these instructions.
  13. <ul>
  14. <li>Obtain a copy of the Dart client. http://public.kitware.com/Dart
  15. <br>
  16. cvs -d :pserver:[email protected]:/Dart/cvsroot login
  17. (password is dart)
  18. <br>
  19. cvs -d :pserver:[email protected]:/Dart/cvsroot co Dart
  20. <br>
  21. <li> install tcl.
  22. <li> configure your CMake build to find Tcl and Dart.
  23. <li> test your setup by typing make Experimental, then check the CMake dashboard in the next hour to see if your results are availiable.
  24. </ul>
  25. 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
  26. 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.
  27. <ul>
  28. <li> Windows Visual C++ 6.0 Nightly build
  29. <br>
  30. cmakeNightlyVC.sh - A cygwin shell script to build a cmake dashboard.
  31. <PRE>
  32. cd //c/hoffman/Dart
  33. cvs update -dAP
  34. cd //c/hoffman/CMake
  35. cvs update -dAP
  36. cd //c/hoffman
  37. rm -rf CMake-vc-dashboard
  38. mkdir CMake-vc-dashboard
  39. cd CMake-vc-dashboard
  40. echo -e DART_ROOT:PATH=c:/Hoffman/Dart\\nMAKEPROGRAM:FILEPATH=msdev > CMakeCache.txt
  41. /cygdrive/c/hoffman/CMake/Source/cmake ../CMake
  42. msdev CMake.dsw /MAKE "Nightly - Win32 Debug" /BUILD
  43. </PRE>
  44. <br>
  45. cmakeNightlyVC.bat - A windows batch file that can run cmakeNightlyVC.sh and be used from the microsoft program scheduler.
  46. <PRE>
  47. bash --login //c/Hoffman/cmakeNightlyVC.sh
  48. </PRE>
  49. <br>
  50. dashboardCMake.csh -- a csh script to build cmake for a sun
  51. <PRE>
  52. #!/bin/csh
  53. cd ${HOME}/Dart
  54. cvs update -dAP
  55. cd ${HOME}/CMake
  56. cvs update -dAP
  57. cd ${HOME}
  58. # clean the entire build directory
  59. rm -rf CMake-CC-dashboard
  60. mkdir CMake-CC-dashboard
  61. cd CMake-CC-dashboard
  62. # preload the Dart path into the cache
  63. echo DART_ROOT:PATH=/disk2/home/hoffman/Dart > CMakeCache.txt
  64. setenv CXX CC
  65. setenv CC cc
  66. setenv CXXFLAGS ""
  67. ../CMake/configure
  68. gmake Nightly
  69. </PRE>
  70. </PRE>
  71. <br>dashboardCronEntry.csh -- a csh script that can be run from cron
  72. <PRE>
  73. <PRE>
  74. #!/bin/csh
  75. /bin/rm -f nightlyBuild.out
  76. csh ${HOME}/dashboardCMake.csh > nightlyBuild.out
  77. </PRE>
  78. </PRE
  79. <br> contab entry for above
  80. <PRE>
  81. <PRE>
  82. # do a nightly cmake
  83. 0 4 * * * /disk2/home/hoffman/cronRunTests
  84. </PRE>
  85. </PRE>
  86. </div>
  87. </td>
  88. </tr>
  89. </table>
  90. </td>
  91. </tr>
  92. </table>
  93. </body>
  94. </html>