comparison contrib/nightly_tests/README @ 464:e16866e190a4

Updated tests documentation
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 30 Jul 2010 16:30:03 +0900
parents 195096819152
children 7a2c3e233449
comparison
equal deleted inserted replaced
463:255eec089c91 464:e16866e190a4
9 9
10 ============= 10 =============
11 11
12 INSTRUCTIONS to setup a new build slave for the freeDiameter buildserver: 12 INSTRUCTIONS to setup a new build slave for the freeDiameter buildserver:
13 13
14 1) Install all dependencies for freeDiameter. See the "prereqs" file (for Debian/Ubuntu). 14 1) Install all dependencies for freeDiameter as follow:
15 a) Debian / Ubuntu: See the "prereqs" file
15 $ sudo aptitude install `wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/prereqs -O - | grep -v -e "^#"` 16 $ sudo aptitude install `wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/prereqs -O - | grep -v -e "^#"`
17
18 b) FreeBSD:
19 - install base system and ports
20 - install freediameter dependencies as follow:
21 # pkg_add -r -v wget bash cmake mercurial flex bison gnutls postgresql84-client postgresql84-server mysql50-client
16 22
17 2) Create the "test" database for app_acct test (we assume the tests are run as user "test" here) 23 2) Create the "test" database for app_acct test (we assume the tests are run as user "test" here)
24 - check INSTALL.FreeBSD file for specific PostgreSQL pre-install instructions.
25 - These are the instructions for Ubuntu, adjust as needed:
18 # su - postgres 26 # su - postgres
19 # createuser test 27 # createuser test
20 Shall the new role be a superuser? (y/n) n 28 Shall the new role be a superuser? (y/n) n
21 Shall the new role be allowed to create databases? (y/n) y 29 Shall the new role be allowed to create databases? (y/n) y
22 Shall the new role be allowed to create more new roles? (y/n) n 30 Shall the new role be allowed to create more new roles? (y/n) n
53 $ echo "SET(CTEST_SITE \""`hostname`"\")" > local.cmake 61 $ echo "SET(CTEST_SITE \""`hostname`"\")" > local.cmake
54 62
55 For FreeBSD: 63 For FreeBSD:
56 $ echo "set(CTEST_BUILD_OPTIONS \"\${CTEST_BUILD_OPTIONS} -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex\")" >> local.cmake 64 $ echo "set(CTEST_BUILD_OPTIONS \"\${CTEST_BUILD_OPTIONS} -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex\")" >> local.cmake
57 65
58 6) Run the script once to check it works properly 66 6) Run the script once to check it works properly (freeBSD might require: ln -s /usr/local/bin/bash /bin/bash)
59 67
60 7) Set up a crontab to run the script 68 7) Set up a crontab to run the script
61 $ wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/cronjob.sh 69 $ wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/cronjob.sh
62 $ chmod +x cronjob.sh 70 $ chmod +x cronjob.sh
63 $ crontab -l 71 $ crontab -l
"Welcome to our mercurial repository"