Commit 3b4448d0 authored by Nicolas Wavrant's avatar Nicolas Wavrant Committed by Cédric Le Ninivin

slaprunner: bin/runTestSuite created with buildout

parent f283cfe2
...@@ -44,7 +44,7 @@ mode = 0644 ...@@ -44,7 +44,7 @@ mode = 0644
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg url = ${:_profile_base_location_}/instance-runner.cfg
output = ${buildout:directory}/template-runner.cfg.in output = ${buildout:directory}/template-runner.cfg.in
md5sum = 35244440c627151428210ab2645df556 md5sum = 569fc375fdf28c2ca8d40be9d6a4814c
mode = 0644 mode = 0644
[instance-runner-import] [instance-runner-import]
......
...@@ -14,11 +14,11 @@ parts = ...@@ -14,11 +14,11 @@ parts =
slaprunner-promise slaprunner-promise
slaprunner-frontend-promise slaprunner-frontend-promise
dropbear-promise dropbear-promise
runtestsuite
shellinabox-promise shellinabox-promise
symlinks symlinks
shellinabox shellinabox
slapos-cfg slapos-cfg
slapos-test-cfg
slapos-repo-config slapos-repo-config
cron-entry-prepare-software cron-entry-prepare-software
deploy-instance-parameters deploy-instance-parameters
...@@ -176,16 +176,20 @@ knowledge0_file = $${buildout:directory}/$${public:filename} ...@@ -176,16 +176,20 @@ knowledge0_file = $${buildout:directory}/$${public:filename}
[test-runner] [test-runner]
<= slaprunner <= slaprunner
slaprunnertest = ${buildout:directory}/bin/slaprunnertest
slapos.cfg = $${directory:etc}/slapos-test.cfg slapos.cfg = $${directory:etc}/slapos-test.cfg
working-directory = $${runnerdirectory:test} working-directory = $${runnerdirectory:test}
project-directory = $${runnerdirectory:project-test} project-directory = $${runnerdirectory:project-test}
software-directory = $${runnerdirectory:software-test} software-directory = $${runnerdirectory:software-test}
instance-directory = $${runnerdirectory:instance-test} instance-directory = $${runnerdirectory:instance-test}
proxy_port = 8602 proxy_port = 8602
wrapper = $${directory:bin}/runTestSuite
etc_dir = $${directory:test} etc_dir = $${directory:test}
[runtestsuite]
recipe = slapos.cookbook:wrapper
command-line = ${buildout:directory}/bin/slaprunnertest
wrapper-path = $${directory:bin}/runTestSuite
environment = RUNNER_CONFIG=$${slapos-test-cfg:rendered}
# Deploy dropbear (minimalist SSH server) # Deploy dropbear (minimalist SSH server)
[sshkeys-directory] [sshkeys-directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
...@@ -486,7 +490,7 @@ context = ...@@ -486,7 +490,7 @@ context =
[slapos-test-cfg] [slapos-test-cfg]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${slapos-cfg-template:location}/${slapos-cfg-template:filename} template = ${slapos-cfg-template:location}/${slapos-cfg-template:filename}
rendered = $${slaprunner:slapos.cfg} rendered = $${test-runner:slapos.cfg}
mode = 700 mode = 700
context = context =
section slaprunner test-runner section slaprunner test-runner
......
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