Commit fc2cfc0b authored by François Bobot's avatar François Bobot Committed by Cédric de Saint Martin

Add experimental zerovm SR.

That runs... zerovm tests.
parent bb83a157
#!/bin/bash
export ZVM_PREFIX=${zerovm:location}
export ZEROVM_ROOT=${zerovm-source:location}
export PATH=$ZVM_PREFIX/bin:$PATH
export LD_LIBRARY_PATH=${zeromq2:location}/lib:${zerovm:location}/usr/lib:${glib:location}/lib
$ZEROVM_ROOT/ftests.sh |& sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g"
#############################
#
# Deploy hello-world instance
#
#############################
[buildout]
parts =
zerovm-tests-wrapper
zpython-samples-wrapper
# Define egg directories to be the one from Software Release
# (/opt/slapgrid/...)
# Always the same.
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
# Create all needed directories, depending on your needs
[directory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
# Executables put here will be started and monitored (for daemons)
service = $${:etc}/service
scripts = $${:etc}/run
# Executables put here will be launched after buildout has completed to see
# if instance is running
promise = $${:etc}/promise/
[zerovm-tests-wrapper]
recipe = plone.recipe.command
command = cp ${template-ftests.sh:output} $${directory:scripts}/ftests.sh && chmod +x $${directory:scripts}/ftests.sh
update-command = cp ${template-ftests.sh:output} $${directory:scripts}/ftests.sh && chmod +x $${directory:scripts}/ftests.sh
[zpython-samples-wrapper]
recipe = plone.recipe.command
command = cp ${template-zpython_samples.sh:output} $${directory:scripts}/zpython_samples.sh && chmod +x $${directory:scripts}/zpython_samples.sh
update-command = cp ${template-zpython_samples.sh:output} $${directory:scripts}/zpython_samples.sh && chmod +x $${directory:scripts}/zpython_samples.sh
[buildout]
extends =
../../component/zerovm/buildout.cfg
../../stack/slapos.cfg
parts =
template
slapos-cookbook
# hack
download-cache = .
[template-ftests.sh]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/ftests.sh.in
output = ${buildout:directory}/ftests.sh
md5sum = c3bd90b09ed7c05208258b861225d42a
mode = 755
[template-zpython_samples.sh]
depends = ${zerovm-samples:depends}
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/zpython_samples.sh.in
output = ${buildout:directory}/zpython_samples.sh
md5sum = 7137a889f06ee6337d72a2d92b7502cc
mode = 755
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
md5sum = a619f158b3118c439da13ce6ff54adc7
mode = 0644
#!/bin/bash -e
export ZVM_PREFIX=${zerovm:location}
export ZEROVM_ROOT=${zerovm-source:location}
export PATH=$ZVM_PREFIX/bin:$PATH
export LD_LIBRARY_PATH=${zeromq2:location}/lib:${zerovm:location}/usr/lib:${glib:location}/lib
cd ${zerovm-samples-source:location}/zshell
exec ./run_python_samples.sh
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