Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
slapos
Commits
fc2cfc0b
Commit
fc2cfc0b
authored
Sep 04, 2013
by
François Bobot
Committed by
Cédric de Saint Martin
Sep 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add experimental zerovm SR.
That runs... zerovm tests.
parent
bb83a157
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
0 deletions
+94
-0
software/zerovm-test/ftests.sh.in
software/zerovm-test/ftests.sh.in
+10
-0
software/zerovm-test/instance.cfg.in
software/zerovm-test/instance.cfg.in
+40
-0
software/zerovm-test/software.cfg
software/zerovm-test/software.cfg
+33
-0
software/zerovm-test/zpython_samples.sh.in
software/zerovm-test/zpython_samples.sh.in
+11
-0
No files found.
software/zerovm-test/ftests.sh.in
0 → 100644
View file @
fc2cfc0b
#!/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/
\x
1B
\[
([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g"
software/zerovm-test/instance.cfg.in
0 → 100644
View file @
fc2cfc0b
#############################
#
# 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
software/zerovm-test/software.cfg
0 → 100644
View file @
fc2cfc0b
[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
software/zerovm-test/zpython_samples.sh.in
0 → 100644
View file @
fc2cfc0b
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment