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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
slapos
Commits
128bc69a
Commit
128bc69a
authored
Jun 27, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/erp5: scalability add wrapper to runScalabilityTestSuite
parent
57b373b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
16 deletions
+25
-16
software/erp5-util-testing/instance.cfg
software/erp5-util-testing/instance.cfg
+2
-0
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+9
-1
stack/erp5/instance-scalability.cfg.in
stack/erp5/instance-scalability.cfg.in
+14
-15
No files found.
software/erp5-util-testing/instance.cfg
View file @
128bc69a
...
...
@@ -28,6 +28,8 @@ repository = ${erp5-util-repository:location}
recipe = slapos.cookbook:egg_test
run-test-suite = $${create-directory:bin}/runTestSuite
run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
run-scalability-test-suite = $${create-directory:bin}/runScalabilityTestSuite
run-scalability-test-suite-binary = $${buildout:bin-directory}/runScalabilityTestSuite
# The list of executables should be defined here and a combination
# of tests should dynamically generated.
#python-list = $${}
...
...
stack/erp5/buildout.cfg
View file @
128bc69a
...
...
@@ -287,7 +287,7 @@ md5sum = f271a904e7cc0039ce109f592fb48b5f
[template-scalability]
< = download-base
filename = instance-scalability.cfg.in
md5sum =
fbbfece0272b819cda88895b6cb7258a
md5sum =
cd0f1a92a3aba62ddae4dd52a0a4dc28
[template-zeo]
< = download-base
...
...
@@ -415,6 +415,14 @@ initialization =
repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
# Test to make binary
[scalability_launcher]
recipe = zc.recipe.egg
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
scripts = erp5.util.scalability.scalability_launcher:main
[eggs]
recipe = zc.recipe.egg
python = python2.7
...
...
stack/erp5/instance-scalability.cfg.in
View file @
128bc69a
...
...
@@ -3,7 +3,8 @@
parts =
erp5-cluster
launcher
# binary-wrap-launcher
binary-wrap-launcher
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
...
...
@@ -26,34 +27,32 @@ config =
extra-config =
config-use-ipv6 = {{ dumps(slapparameter_dict.get('use-ipv6', False)) }}
[launcher-param]
binary-path = ${rootdirectory:bin}/launcher
wrapper-path = ${rootdirectory:bin}/launcher
log-path = ${basedirectory:log}/launcher.log
test-suite-title = {{ slapparameter_dict.get('test-suite-title', '') }}
# Create bin
[launcher]
erp5.util.benchmark.scalability_launcher:main
scripts =
runScalabilityTestSuite = erp5.util.scalability.scalability_launcher:main
log-path = ${basedirectory:log}/runScalabilityTestSuite.log
binary-path = ${:bin-directory}/runScalabilityTestSuite
# Create wrapper and execute command with parameters
[binary-wrap-launcher]
recipe = slapos.cookbook:wrapper
wrapper-path = ${rootdirectory:bin}/launcher
output = ${launcher:binary-path}
command-line = "${binary-wrap-launcher:wrapper-path} --log ${launcher:log-path} --help"
return = url
#[binary-wrap-launcher]
#recipe = slapos.cookbook:wrapper
#command-line = "${launcher-param:binary-path} --test_suite_title ${launcher-param:test-suite-title} --log ${launcher-param:log-path}"
#output = ${launcher-param:binary-path}
#return = url
[basedirectory]
recipe = slapos.cookbook:mkdirectory
log = ${rootdirectory:var}/log
run = ${rootdirectory:var}/run
services = ${rootdirectory:etc}/run
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = ${buildout:directory}/etc
var = ${buildout:directory}/var
srv = ${buildout:directory}/srv
bin = ${buildout:directory}/bin
{% endif %}
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