Commit 92a6af59 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 10bcc28a
...@@ -5,6 +5,7 @@ extends = ...@@ -5,6 +5,7 @@ extends =
../../../stack/nxdtest.cfg ../../../stack/nxdtest.cfg
../buildout-dev.cfg ../buildout-dev.cfg
# XXX kill pygolang (used by python)
parts = parts =
pygolang pygolang
gpython gpython
...@@ -16,9 +17,26 @@ parts = ...@@ -16,9 +17,26 @@ parts =
# XXX correct ? # XXX correct ?
[pygolang] [pygolang]
eggs += pygolang[all_test] eggs += pygolang[all_test]
# install python with sys.path to eggs
# use gpython, instead of pygolang, since interpreter works only for regular
# zc.recipe.egg, not zc.recipe.egg:custom XXX
# the `python` interreter will just set sys.path to pygolang, not activate gevent
[gpython]
interpreter = python
[pygolang-env.sh]
recipe = slapos.recipe.template:jinja2
rendered= ${buildout:directory}/${:_buildout_section_name_}
template= inline:
PATH=${buildout:bin-directory}:$PATH
# XXX python with eggs
# XXX needed? -> move to stack/nxdtest completely? # XXX needed? -> move to stack/nxdtest completely?
[instance.cfg] [instance.cfg]
<= nxdtest-instance.cfg <= nxdtest-instance.cfg
env.sh = ${pygolang-env.sh:rendered}
workdir = ${pygolang-repository:location}
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
# neotest's runTestSuite wraper so it could be run without any environment preset # neotest's runTestSuite wraper so it could be run without any environment preset
. ${buildout:directory}/neotest-env.sh . ${buildout:directory}/neotest-env.sh
exec ${gowork:src}/lab.nexedi.com/kirr/neo/go/neo/t/nxd/runTestSuite "$@" exec nxdtest ${gowork:src}/lab.nexedi.com/kirr/neo/go/neo/t/.nxdtest "$@"
...@@ -21,6 +21,8 @@ mode = 0644 ...@@ -21,6 +21,8 @@ mode = 0644
context = context =
section buildout buildout section buildout buildout
section nxdtest nxdtest section nxdtest nxdtest
key env_sh :env.sh
# XXX env.sh - must be provided by user XXX or default empty?
[nxdtest] [nxdtest]
......
...@@ -24,5 +24,5 @@ t = ${:home}/t ...@@ -24,5 +24,5 @@ t = ${:home}/t
[runTestSuite] [runTestSuite]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:bin}/${:_buildout_section_name_} wrapper-path = ${directory:bin}/${:_buildout_section_name_}
command-line = /bin/bash -c 'cd ${directory:t} && {{ nxdtest['exe'] }} "$@"' nxdtest command-line = /bin/bash -c '. {{ env_sh }} && cd ${directory:t} && {{ nxdtest['exe'] }} "$@"' nxdtest
# "$@" is implicitly added to argv # "$@" is implicitly added to argv
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment