Commit 03bfb57b authored by Julien Muchembled's avatar Julien Muchembled

test-rina: enable build of hellorina SR

parent 24953227
...@@ -100,9 +100,8 @@ commands = install test ...@@ -100,9 +100,8 @@ commands = install test
install = install =
${:apt-update} ${:apt-update}
sudo apt-get -y install librinad-dev rinad sudo apt-get -y install librinad-dev rinad
: || { mkdir software
mkdir rina-tools cd software
cd rina-tools
cat <<EOF >buildout.cfg cat <<EOF >buildout.cfg
[buildout] [buildout]
extends = /mnt/slapos/software/hellorina/software.cfg extends = /mnt/slapos/software/hellorina/software.cfg
...@@ -112,13 +111,11 @@ install = ...@@ -112,13 +111,11 @@ install =
setup = setup =
[irati-stack] [irati-stack]
repository = /mnt/rina repository = /mnt/rina
shared = true
[versions] [versions]
slapos.cookbook = slapos.cookbook =
EOF EOF
sed s,${buildout:directory}/,/mnt/buildout/, /mnt/buildout/bin/buildout | MAKEFLAGS=-j${:smp} python -S /mnt/buildout/bin/buildout
python - bootstrap
MAKEFLAGS=-j${:smp} bin/buildout
}
arch=`dpkg-architecture -qDEB_HOST_ARCH` arch=`dpkg-architecture -qDEB_HOST_ARCH`
sudo sh -c "/mnt/slapos.package/playbook/roles/rina/gen-ipcm-conf sudo sh -c "/mnt/slapos.package/playbook/roles/rina/gen-ipcm-conf
......
...@@ -6,6 +6,7 @@ from time import gmtime, strftime, time ...@@ -6,6 +6,7 @@ from time import gmtime, strftime, time
# What we do here is currently too new to reuse more from testsuite. # What we do here is currently too new to reuse more from testsuite.
from erp5.util import taskdistribution from erp5.util import taskdistribution
from erp5.util.testsuite import format_command from erp5.util.testsuite import format_command
from zc.buildout.buildout import Buildout
{% set vm = parameter_dict['vm'] -%} {% set vm = parameter_dict['vm'] -%}
...@@ -79,12 +80,18 @@ def main(): ...@@ -79,12 +80,18 @@ def main():
else: else:
test_result = DummyTestResult(dist_list) test_result = DummyTestResult(dist_list)
Buildout._setup_logging = lambda self: None
fd = os.open('buildout.cfg', os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0666) fd = os.open('buildout.cfg', os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0666)
try: try:
os.write(fd, """\ os.write(fd, """\
[buildout] [buildout]
extends = {{parameter_dict['profile_base_location']}}/build.cfg
offline = true offline = true
relative-paths = true
""")
Buildout('buildout.cfg', {}).bootstrap(None)
os.write(fd, """\
extends = {{parameter_dict['profile_base_location']}}/build.cfg
develop-eggs-directory = {{buildout['develop-eggs-directory']}} develop-eggs-directory = {{buildout['develop-eggs-directory']}}
eggs-directory = {{buildout['eggs-directory']}} eggs-directory = {{buildout['eggs-directory']}}
...@@ -109,7 +116,7 @@ location = {{parameter_dict['slapos_package']}} ...@@ -109,7 +116,7 @@ location = {{parameter_dict['slapos_package']}}
break break
dist = test_result_line.name dist = test_result_line.name
cmd = [{{repr(parameter_dict['buildout'])}}, cmd = [os.path.join('bin', 'buildout'),
'vm-run-base:dist=' + dist, 'vm-run-base:dist=' + dist,
'debuild-rina-base:suite=' + (publish['suite'] if publish else ''), 'debuild-rina-base:suite=' + (publish['suite'] if publish else ''),
] ]
......
...@@ -39,7 +39,6 @@ template = inline: ...@@ -39,7 +39,6 @@ template = inline:
environment = {{dumps(environment)}} environment = {{dumps(environment)}}
vm = {{dumps(vm)}} vm = {{dumps(vm)}}
runTestSuite_py = ${buildout:bin-directory}/${runTestSuite_py:interpreter} runTestSuite_py = ${buildout:bin-directory}/${runTestSuite_py:interpreter}
buildout = ${buildout:bin-directory}/buildout
profile_base_location = ${:_profile_base_location_} profile_base_location = ${:_profile_base_location_}
irati_stack = ${irati-stack:location} irati_stack = ${irati-stack:location}
slapos_package = ${slapos.package-repository:location} slapos_package = ${slapos.package-repository:location}
...@@ -50,6 +49,7 @@ context = ...@@ -50,6 +49,7 @@ context =
[runTestSuite_py] [runTestSuite_py]
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = erp5.util eggs = erp5.util
zc.buildout
interpreter = ${:_buildout_section_name_} interpreter = ${:_buildout_section_name_}
[irati-stack] [irati-stack]
......
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