slapos-testing: Test erp5.util egg with slapos eggs.
[slapos.git] / software / slapos-testing / instance.cfg
1 [buildout]
2 parts =
3   slapos.core-setup
4   erp5.util-setup
5   slapos-test-runner
6   sh-environment
7
8 eggs-directory = ${buildout:eggs-directory}
9 develop-eggs-directory = ${buildout:develop-eggs-directory}
10 offline = true
11
12 [create-directory]
13 recipe = slapos.cookbook:mkdirectory
14 bin = $${buildout:directory}/bin
15 etc = $${buildout:directory}/etc
16 services = $${:etc}/run
17 srv = $${buildout:directory}/srv
18 source-code = $${:srv}/eggs-source-code
19
20 [download-source]
21 recipe = slapos.recipe.build:gitclone
22 git-executable = ${git:location}/bin/git
23
24 # Local development
25 [slapos.core]
26 <= download-source
27 repository = ${slapos.core-repository:location}
28
29 [slapos.core-setup]
30 recipe = plone.recipe.command
31 command = echo "Updating setup...";cd $${slapos.core:location}; export PATH="$${slapos-test-runner:prepend-path}:$PATH"; export CPPFLAGS="$${environment:CPPFLAGS}"; export LDFLAGS="$${environment:LDFLAGS}"; export PYTHONPATH="$${environment:PYTHONPATH}"; python setup.py test -n; python setup.py test -n; python setup.py test -n; python setup.py test -n 
32 update-command = $${:command}
33
34 [slapos.recipe.template]
35 <= download-source
36 repository = ${slapos.recipe.template-repository:location}
37
38 [slapos.recipe.build]
39 <= download-source
40 repository = ${slapos.recipe.build-repository:location}
41
42 [erp5-util]
43 <= download-source
44 repository = ${erp5-util-repository:location}
45
46 [erp5.util-setup]
47 recipe = plone.recipe.command
48 command = echo "Updating setup...";cd $${erp5-util:location}; export PATH="$${slapos-test-runner:prepend-path}:$PATH"; export CPPFLAGS="$${environment:CPPFLAGS}"; export LDFLAGS="$${environment:LDFLAGS}"; export PYTHONPATH="$${environment:PYTHONPATH}"; python setup.py test -n; python setup.py test -n; python setup.py test -n; python setup.py test -n; python setup.py test -n 
49 update-command = $${:command}
50
51 [slapos-test-runner]
52 recipe = slapos.cookbook:egg_test
53 run-test-suite = $${create-directory:bin}/runTestSuite
54 run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
55 # The list of executables should be defined here and a combination
56 # of tests should dynamically generated.
57 #python-list = $${}
58 test-list =
59   $${slapos.core:location}
60   $${slapos.recipe.template:location}
61   $${slapos.recipe.build:location}
62   $${erp5-util:location}
63 prepend-path = ${git:location}/bin:${libxslt:location}/bin:${python2.7:location}/bin
64 environment = environment
65
66 [environment]
67 CPPFLAGS = -I${python2.7:location}/include/python2.7 -I${libxml2:location}/include -I${libxslt:location}/include
68 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
69 LD_LIBRARY_PATH = ${python2.7:location}/lib:${libxml2:location}/lib:${libxslt:location}/lib:${libxslt:location}/lib:${zlib:location}/lib
70 PYTHONPATH = ${python-setuptools:pythonpath}
71
72 [sh-environment]
73 # Section exposes testing default environment as sh file. It is thus easy
74 # to directly develop and test the egg inside of this instance.
75 recipe = collective.recipe.template
76 input = inline:
77   export PATH="$${slapos-test-runner:prepend-path}:$PATH"
78   export CPPFLAGS="$${environment:CPPFLAGS}"
79   export LDFLAGS="$${environment:LDFLAGS}"
80   export PYTHONPATH="$${environment:PYTHONPATH}"
81   export PS1="[slapos-testing env Active] $PS1"
82 output = $${create-directory:bin}/environment.sh
83 mode = 755