Commit d236db16 authored by Benjamin Blanc's avatar Benjamin Blanc

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

parent 5094c881
......@@ -9,6 +9,7 @@ eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
# Request erp5-cluster instance
[erp5-cluster]
recipe = slapos.cookbook:request.serialised
sla = computer_guid
......@@ -28,23 +29,32 @@ extra-config =
config-use-ipv6 = {{ dumps(slapparameter_dict.get('use-ipv6', False)) }}
# Create bin
# Create binary
[launcher]
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"
# 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
# Create partition's directories
[basedirectory]
recipe = slapos.cookbook:mkdirectory
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