Mercurial > hg > freeDiameter
annotate contrib/nightly_tests/README @ 417:195096819152 1.0.0-rc1
Cleanups in documentation
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 08 Jul 2010 17:55:18 +0900 |
parents | 3ed2c84d9e23 |
children | e16866e190a4 |
rev | line source |
---|---|
344 | 1 This folder contains information and scripts to run a new test configuration for nightly builds |
408
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
2 and reporting the results to freeDiameter dashboard at: |
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
3 http://www.freediameter.net/CDash/index.php?project=freeDiameter |
344 | 4 |
408
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
5 The information gathered here mostly comes from the following pages: |
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
6 http://www.itk.org/Wiki/CMake_Testing_With_CTest |
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
7 http://www.itk.org/Wiki/CMake_Scripting_Of_CTest |
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
8 http://www.itk.org/Wiki/CTest:Buildserver |
344 | 9 |
408
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
10 ============= |
344 | 11 |
408
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
12 INSTRUCTIONS to setup a new build slave for the freeDiameter buildserver: |
344 | 13 |
408
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
14 1) Install all dependencies for freeDiameter. See the "prereqs" file (for Debian/Ubuntu). |
410
3ed2c84d9e23
Couple of fixes and improvements
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
408
diff
changeset
|
15 $ sudo aptitude install `wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/prereqs -O - | grep -v -e "^#"` |
344 | 16 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
17 2) Create the "test" database for app_acct test (we assume the tests are run as user "test" here) |
353 | 18 # su - postgres |
19 # createuser test | |
20 Shall the new role be a superuser? (y/n) n | |
21 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 | |
23 # logout | |
24 $ whoami | |
25 test | |
26 $ createdb test | |
27 $ psql test | |
28 psql (8.4.4) | |
29 Type "help" for help. | |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
30 |
353 | 31 test=> |
32 CREATE TABLE incoming_test ( | |
33 recorded_on timestamp with time zone NOT NULL, | |
34 "Accounting-Record-Type" integer, | |
35 "Session-Id" bytea, | |
36 "Accounting-Record-Number" integer, | |
37 "Route-Record1" bytea, | |
38 "Route-Record2" bytea, | |
39 "Route-Record3" bytea, | |
40 "Route-Record4" bytea ); | |
41 \q | |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
42 |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
43 3) Create a directory ~/fDtests |
353 | 44 $ cd |
45 $ mkdir fDtests | |
46 $ cd fDtests | |
344 | 47 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
48 4) Retrieve the runtests.sh script and save in this directory |
353 | 49 $ wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/runtests.sh |
50 $ chmod +x runtests.sh | |
344 | 51 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
52 5) Create a file local.cmake defining the name of the build slave in this directory also. |
353 | 53 $ echo "SET(CTEST_SITE \""`hostname`"\")" > local.cmake |
417
195096819152
Cleanups in documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
410
diff
changeset
|
54 |
195096819152
Cleanups in documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
410
diff
changeset
|
55 For FreeBSD: |
195096819152
Cleanups in documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
410
diff
changeset
|
56 $ echo "set(CTEST_BUILD_OPTIONS \"\${CTEST_BUILD_OPTIONS} -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex\")" >> local.cmake |
344 | 57 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
58 6) Run the script once to check it works properly |
345 | 59 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
60 7) Set up a crontab to run the script |
410
3ed2c84d9e23
Couple of fixes and improvements
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
408
diff
changeset
|
61 $ wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/cronjob.sh |
3ed2c84d9e23
Couple of fixes and improvements
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
408
diff
changeset
|
62 $ chmod +x cronjob.sh |
408
9a9a9e1ed4cb
Added cron job information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
353
diff
changeset
|
63 $ crontab -l |
417
195096819152
Cleanups in documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
410
diff
changeset
|
64 0 0 * * * /home/test/fDtests/cronjob.sh > /home/test/fDtests/cronjob.log 2>&1 |