# HG changeset patch # User Sebastien Decugis # Date 1277799568 -32400 # Node ID 5d988e250308805c570f28a16fc91e1a8b38c718 # Parent 2521e4d91dac507485b595b44550291d6a7f4b87 Fixes diff -r 2521e4d91dac -r 5d988e250308 contrib/nightly_tests/README --- a/contrib/nightly_tests/README Tue Jun 29 17:11:12 2010 +0900 +++ b/contrib/nightly_tests/README Tue Jun 29 17:19:28 2010 +0900 @@ -11,45 +11,45 @@ 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 -` + $ sudo aptitude install `wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/prereqs -O - | grep -v -e "$#"` 2) Create the "test" database for app_acct test (we assume the tests are run as user "test" here) -# su - postgres -# createuser test -Shall the new role be a superuser? (y/n) n -Shall the new role be allowed to create databases? (y/n) y -Shall the new role be allowed to create more new roles? (y/n) n -# logout -$ whoami -test -$ createdb test -$ psql test -psql (8.4.4) -Type "help" for help. + # su - postgres + # createuser test + Shall the new role be a superuser? (y/n) n + Shall the new role be allowed to create databases? (y/n) y + Shall the new role be allowed to create more new roles? (y/n) n + # logout + $ whoami + test + $ createdb test + $ psql test + psql (8.4.4) + Type "help" for help. -test=> -CREATE TABLE incoming_test ( -recorded_on timestamp with time zone NOT NULL, -"Accounting-Record-Type" integer, -"Session-Id" bytea, -"Accounting-Record-Number" integer, -"Route-Record1" bytea, -"Route-Record2" bytea, -"Route-Record3" bytea, -"Route-Record4" bytea ); -\q + test=> + CREATE TABLE incoming_test ( + recorded_on timestamp with time zone NOT NULL, + "Accounting-Record-Type" integer, + "Session-Id" bytea, + "Accounting-Record-Number" integer, + "Route-Record1" bytea, + "Route-Record2" bytea, + "Route-Record3" bytea, + "Route-Record4" bytea ); + \q 3) Create a directory ~/fDtests -$ cd -$ mkdir fDtests -$ cd fDtests + $ cd + $ mkdir fDtests + $ cd fDtests 4) 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 + $ wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/runtests.sh + $ chmod +x runtests.sh 5) Create a file local.cmake defining the name of the build slave in this directory also. -$ echo "SET(CTEST_SITE \""`hostname`"\")" > local.cmake + $ echo "SET(CTEST_SITE \""`hostname`"\")" > local.cmake 6) Run the script once to check it works properly diff -r 2521e4d91dac -r 5d988e250308 contrib/nightly_tests/allext.conf --- a/contrib/nightly_tests/allext.conf Tue Jun 29 17:11:12 2010 +0900 +++ b/contrib/nightly_tests/allext.conf Tue Jun 29 17:19:28 2010 +0900 @@ -6,19 +6,19 @@ set(CTEST_BUILD_NAME "All extensions") set(CTEST_BUILD_OPTIONS "") -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_ACL_WL:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_APP_ACCT:BOOL=ON -DTEST_APP_ACCT:BOOL=ON -DTEST_APP_ACCT_CONNINFO:STRING="user=test dbname=test") -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_APP_RADGW:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_DBG_MONITOR:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_DBG_RT:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_DICT_EAP:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_DICT_NASREQ:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_DICT_SIP:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_RGWX_ACCT:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_RGWX_AUTH:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_RGWX_DEBUG:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_RGWX_ECHODROP:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_RGWX_SAMPLE:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_RT_DEFAULT:BOOL=ON) -set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS}" -DBUILD_TEST_APP:BOOL=ON) +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_ACL_WL:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_APP_ACCT:BOOL=ON -DTEST_APP_ACCT:BOOL=ON -DTEST_APP_ACCT_CONNINFO:STRING=\"user=test dbname=test\"") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_APP_RADGW:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_DBG_MONITOR:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_DBG_RT:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_DICT_EAP:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_DICT_NASREQ:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_DICT_SIP:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_RGWX_ACCT:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_RGWX_AUTH:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_RGWX_DEBUG:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_RGWX_ECHODROP:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_RGWX_SAMPLE:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_RT_DEFAULT:BOOL=ON") +set(CTEST_BUILD_OPTIONS "${CTEST_BUILD_OPTIONS} -DBUILD_TEST_APP:BOOL=ON")