# HG changeset patch # User Sebastien Decugis # Date 1277792159 -32400 # Node ID 0a5169e3fa25301242670d70d5fe4669a7fa6596 # Parent 0e1318e654bcdc7fc8d6b6d5c90dbe5d0a895d3c Update diff -r 0e1318e654bc -r 0a5169e3fa25 contrib/nightly_tests/README --- a/contrib/nightly_tests/README Tue Jun 29 15:07:46 2010 +0900 +++ b/contrib/nightly_tests/README Tue Jun 29 15:15:59 2010 +0900 @@ -11,11 +11,20 @@ These are the instructions to setup a new build slave for the freeDiameter buildserver: 1) Install all dependencies for freeDiameter. See the "prereqs" file. +$ sudo aptitude install `wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/prereqs -O -` 2) Create a directory ~/fDtests +$ cd +$ make fDtests +$ cd fDtests 3) Retrieve the runtests.sh script and save in this directory +$ wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/runtests.sh +$ chmod +x runtests.sh 4) Create a file local.cmake defining the name of the build slave in this directory also. +$ echo "SET(CTEST_SITE \""`hostname`"\")" > local.cmake -5) +5) Run the script once to check it works properly + +6) Set up a crontab to run the script diff -r 0e1318e654bc -r 0a5169e3fa25 contrib/nightly_tests/runtests.sh --- a/contrib/nightly_tests/runtests.sh Tue Jun 29 15:07:46 2010 +0900 +++ b/contrib/nightly_tests/runtests.sh Tue Jun 29 15:15:59 2010 +0900 @@ -4,7 +4,7 @@ # and execute them one by one. ROOTDIR=$HOME/fDtests -if [ -d $ROOTDIR ]; then +if [ ! -d $ROOTDIR ]; then echo "The working directory $ROOTDIR does not exist. Please create or edit the script." exit 1; fi