INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
Automated Testing with CDash
CDash is a software quality assurance system which can easily be integrated into CMake. The general goal is to make software more reliable by simplifying automated code (re)compilation and testing. Running CDash clients at different sites helps catch bugs caused by cross-platform and cross-hardware issues. General things to note:
CDash ServerThe CDash server for Orca is up and running. Users can sign themselves up by clicking on the ''login'' link on top of the page. One useful feature is to send out emails to responsible developers when a build contained errors. After you login, press 'Edit Subscription' and add your sourceforge login name. From now on, if you check something in that doesn't compile, you'll get blamed by email. CDash ClientThe suggested directory structure on the client side is shown below. It is assumed in all the scripts which are included in the distribution. The contents of ctests/ orca/ orca-exp/ build-orca/ orca/ orca-nightly/ build-orca/ orca/ orca-nightly-linux-gcc42.cmake orca-nightly.sh orca-and-friends/ gearbox build-gearbox hydro build-hydro orca build-orca myempty build-empty
That's the simplest test you can run and you do things manually:
$ cd ~/ctests/orca/orca-exp/build-orca $ cmake ../orca/. $ ctest -D Experimental -VV If this worked you should see the results on the webpage after.
Reproduce the file structure shown above. Then add the shell scripts to your crontab with $ crontab -e so it looks something like this: SHELL=/bin/bash 15 4 * * * /home/users/dart/ctests/orca/orca-nightly/orca-nightly.sh
Continuous testing is useful during active development. Whenever something changed in SVN, a build/test sequence is executed and results are submitted to the dashboard. Reproduce the file structure shown above. Execute the shell script once with $ cd ~/ctests/orca/orca-and-friends-cont $ nohup ./orca-and-friends-cont.sh & Orca depends on Gearbox and Hydro as mentioned earlier. The |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)