Commit 483f23f7 authored by Benjamin Blanc's avatar Benjamin Blanc

scalability: stack/erp5 add parameters to the run scalability test suite wrapper

parent ed937fed
...@@ -9,6 +9,7 @@ eggs-directory = {{ eggs_directory }} ...@@ -9,6 +9,7 @@ eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }} develop-eggs-directory = {{ develop_eggs_directory }}
offline = true offline = true
# Request erp5-cluster instance
[erp5-cluster] [erp5-cluster]
recipe = slapos.cookbook:request.serialised recipe = slapos.cookbook:request.serialised
sla = computer_guid sla = computer_guid
...@@ -28,23 +29,32 @@ extra-config = ...@@ -28,23 +29,32 @@ extra-config =
config-use-ipv6 = {{ dumps(slapparameter_dict.get('use-ipv6', False)) }} config-use-ipv6 = {{ dumps(slapparameter_dict.get('use-ipv6', False)) }}
# Create bin # Create binary
[launcher] [launcher]
scripts = scripts =
runScalabilityTestSuite = erp5.util.scalability.scalability_launcher:main runScalabilityTestSuite = erp5.util.scalability.scalability_launcher:main
log-path = ${basedirectory:log}/runScalabilityTestSuite.log log-path = ${basedirectory:log}/runScalabilityTestSuite.log
binary-path = ${:bin-directory}/runScalabilityTestSuite binary-path = ${:bin-directory}/runScalabilityTestSuite
# Create wrapper and execute command with parameters # Create wrapper and execute command with parameters
[binary-wrap-launcher] [binary-wrap-launcher]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
wrapper-path = ${rootdirectory:bin}/launcher wrapper-path = ${rootdirectory:bin}/launcher
output = ${launcher:binary-path} output = ${launcher:binary-path}
command-line = "${binary-wrap-launcher:wrapper-path} --log ${launcher:log-path} --help" # TODO : get the erp5-cluster main url (apache listening user port ?)
erp5-url = http://foo.bar
# Run scalability test suite wrapper command with parameters
command-line = "${binary-wrap-launcher:wrapper-path}\
--erp5-url ${binary-wrap-launcher:erp5-url}\
--test-result-path {{ dumps(slapparameter_dict.get('test-result-path')) }}\
--revision {{ dumps(slapparameter_dict.get('revision')) }}\
--node-title {{ dumps(slapparameter_dict.get('node-title')) }}\
--test-suite-master-url {{ dumps(slapparameter_dict.get('test-suite-master-url')) }}\
--log-path = ${launcher:log-path}"
return = url return = url
# Create partition's directories
[basedirectory] [basedirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
log = ${rootdirectory:var}/log log = ${rootdirectory:var}/log
......
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