Merge remote-tracking branch 'origin/erp5' into erp5-z2.13
[slapos.git] / software / slapos-testing / instance.cfg
1 [buildout]
2 parts = 
3   slapos-test-runner
4   sh-environment
5
6 eggs-directory = ${buildout:eggs-directory}
7 develop-eggs-directory = ${buildout:develop-eggs-directory}
8 offline = true
9
10 [create-directory]
11 recipe = slapos.cookbook:mkdirectory
12 bin = $${buildout:directory}/bin
13 etc = $${buildout:directory}/etc
14 services = $${:etc}/run
15 srv = $${buildout:directory}/srv
16 source-code = $${:srv}/eggs-source-code
17
18 [download-source]
19 recipe = slapos.recipe.build:gitclone
20 git-executable = ${git:location}/bin/git
21
22 # Local development
23 [slapos.core]
24 <= download-source
25 repository = ${slapos.core-repository:location}
26
27 [slapos.recipe.template]
28 <= download-source
29 repository = ${slapos.recipe.template-repository:location}
30
31 [slapos.recipe.build]
32 <= download-source
33 repository = ${slapos.recipe.build-repository:location}
34
35 [slapos-test-runner]
36 recipe = slapos.cookbook:egg_test
37 run-test-suite = $${create-directory:bin}/runTestSuite
38 run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
39 # The list of executables should be defined here and a combination
40 # of tests should dynamically generated.
41 #python-list = $${}
42 test-list =
43   $${slapos.core:location}
44   $${slapos.recipe.template:location}
45   $${slapos.recipe.build:location}
46 prepend-path = ${git:location}/bin:${libxslt:location}/bin:${python2.7:location}/bin
47 environment = environment
48
49 [environment]
50 CPPFLAGS = -I${python2.7:location}/include/python2.7 -I${libxml2:location}/include -I${libxslt:location}/include
51 LDFLAGS = -L${python2.7:location}/lib -L${libxml2:location}/lib -L${libxslt:location}/lib -L${libxslt:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${python2.7:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${libxslt:location}/lib -Wl,-rpath=${zlib:location}/lib
52 PYTHONPATH = ${python-setuptools:location}
53
54 [sh-environment]
55 # Section exposes testing default environment as sh file. It is thus easy
56 # to directly develop and test the egg inside of this instance.
57 recipe = collective.recipe.template
58 input = inline:
59   export PATH="$${slapos-test-runner:prepend-path}:$PATH"
60   export CPPFLAGS="$${environment:CPPFLAGS}"
61   export LDFLAGS="$${environment:LDFLAGS}"
62   export PYTHONPATH="$${environment:PYTHONPATH}"
63   export PS1="[slapos-testing env Active] $PS1"
64 output = $${create-directory:bin}/environment.sh
65 mode = 755