Mercurial > hg > freeDiameter
annotate contrib/nightly_tests/README @ 353:5d988e250308
Fixes
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 29 Jun 2010 17:19:28 +0900 |
parents | 2521e4d91dac |
children | 9a9a9e1ed4cb |
rev | line source |
---|---|
344 | 1 This folder contains information and scripts to run a new test configuration for nightly builds |
2 and reporting the results to freeDiameter dashboard | |
3 http://www.freediameter.net/CDash/index.php?project=freeDiameter | |
4 | |
5 The information comes from: | |
6 http://www.itk.org/Wiki/CMake_Testing_With_CTest | |
7 http://www.itk.org/Wiki/CMake_Scripting_Of_CTest | |
8 http://www.itk.org/Wiki/CTest:Buildserver | |
9 | |
10 | |
11 These are the instructions to setup a new build slave for the freeDiameter buildserver: | |
12 | |
13 1) Install all dependencies for freeDiameter. See the "prereqs" file. | |
353 | 14 $ sudo aptitude install `wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/prereqs -O - | grep -v -e "$#"` |
344 | 15 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
16 2) Create the "test" database for app_acct test (we assume the tests are run as user "test" here) |
353 | 17 # su - postgres |
18 # createuser test | |
19 Shall the new role be a superuser? (y/n) n | |
20 Shall the new role be allowed to create databases? (y/n) y | |
21 Shall the new role be allowed to create more new roles? (y/n) n | |
22 # logout | |
23 $ whoami | |
24 test | |
25 $ createdb test | |
26 $ psql test | |
27 psql (8.4.4) | |
28 Type "help" for help. | |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
29 |
353 | 30 test=> |
31 CREATE TABLE incoming_test ( | |
32 recorded_on timestamp with time zone NOT NULL, | |
33 "Accounting-Record-Type" integer, | |
34 "Session-Id" bytea, | |
35 "Accounting-Record-Number" integer, | |
36 "Route-Record1" bytea, | |
37 "Route-Record2" bytea, | |
38 "Route-Record3" bytea, | |
39 "Route-Record4" bytea ); | |
40 \q | |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
41 |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
42 3) Create a directory ~/fDtests |
353 | 43 $ cd |
44 $ mkdir fDtests | |
45 $ cd fDtests | |
344 | 46 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
47 4) Retrieve the runtests.sh script and save in this directory |
353 | 48 $ wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/runtests.sh |
49 $ chmod +x runtests.sh | |
344 | 50 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
51 5) Create a file local.cmake defining the name of the build slave in this directory also. |
353 | 52 $ echo "SET(CTEST_SITE \""`hostname`"\")" > local.cmake |
344 | 53 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
54 6) Run the script once to check it works properly |
345 | 55 |
352
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
56 7) Set up a crontab to run the script |