Mercurial > hg > freeDiameter
annotate contrib/nightly_tests/README @ 352:2521e4d91dac
Added the allext test
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 29 Jun 2010 17:11:12 +0900 |
parents | 69ec5dcc1fb2 |
children | 5d988e250308 |
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. | |
345 | 14 $ sudo aptitude install `wget http://www.freediameter.net/hg/freeDiameter/raw-file/tip/contrib/nightly_tests/prereqs -O -` |
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) |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
17 # su - postgres |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
18 # createuser test |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
19 Shall the new role be a superuser? (y/n) n |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
20 Shall the new role be allowed to create databases? (y/n) y |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
21 Shall the new role be allowed to create more new roles? (y/n) n |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
22 # logout |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
23 $ whoami |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
24 test |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
25 $ createdb test |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
26 $ psql test |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
27 psql (8.4.4) |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
28 Type "help" for help. |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
29 |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
30 test=> |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
31 CREATE TABLE incoming_test ( |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
32 recorded_on timestamp with time zone NOT NULL, |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
33 "Accounting-Record-Type" integer, |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
34 "Session-Id" bytea, |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
35 "Accounting-Record-Number" integer, |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
36 "Route-Record1" bytea, |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
37 "Route-Record2" bytea, |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
38 "Route-Record3" bytea, |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
39 "Route-Record4" bytea ); |
2521e4d91dac
Added the allext test
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
347
diff
changeset
|
40 \q |
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 |
345 | 43 $ cd |
347
69ec5dcc1fb2
Fix a couple of glinches
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
345
diff
changeset
|
44 $ mkdir fDtests |
345 | 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 |
345 | 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. |
345 | 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 |