Commit 5df3791a authored by Romain Courteaud's avatar Romain Courteaud

WIP selenium runner instance rewrite.

Provides the xserver and the firefox hook.

seleniumrunner code (inside the recipe) still has to be merged with its
original code to prevent duplication.
parent bc794464
[buildout] [buildout]
parts = parts =
seleniuminstance firefox-instance
eggs-directory = ${buildout:eggs-directory} eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[seleniuminstance] # [selenium-instance]
recipe = ${instance-recipe:egg}:${instance-recipe:module} # recipe = slapos.cookbook:seleniumrunner
xvfb_binary = ${xserver:location}/bin/Xvfb #
firefox_binary = ${firefox:location}/firefox-slapos # runner-path = $${basedirectory:services}/selenium-runner
\ No newline at end of file # browser = $${firefox-instance:runner-path}
# suite-url =
# report-url =
[firefox-instance]
recipe = slapos.cookbook:firefox
runner-path = $${rootdirectory:bin}/firefox-sandboxed
firefox-path = ${firefox:location}/firefox-slapos
prefsjs-path = $${rootdirectory:etc}/prefs.js
shell-path = ${dash:location}/bin/dash
tmp-path = $${xvfb-instance:tmp-path}
[xvfb-instance]
recipe = slapos.cookbook:xvfb
runner-path = $${basedirectory:services}/xvfb
xvfb-path = ${xserver:location}/bin/Xvfb
fbdir-path = $${basedirectory:framebuffer}
tmp-path = $${basedirectory:run}
shell-path = ${dash:location}/bin/dash
xwd-path = ${xwd:location}/bin/xwd
xwd-hook-path = $${rootdirectory:bin}/xwd
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
var = $${buildout:directory}/var
srv = $${buildout:directory}/srv
bin = $${buildout:directory}/bin
[basedirectory]
recipe = slapos.cookbook:mkdirectory
services = $${rootdirectory:etc}/run
run = $${rootdirectory:var}/run
framebuffer = $${rootdirectory:srv}/framebuffer
...@@ -6,8 +6,11 @@ extends = ...@@ -6,8 +6,11 @@ extends =
../../component/lxml-python/buildout.cfg ../../component/lxml-python/buildout.cfg
../../component/python-2.7/buildout.cfg ../../component/python-2.7/buildout.cfg
../../component/firefox/buildout.cfg ../../component/firefox/buildout.cfg
../../component/dash/buildout.cfg
../../stack/shacache-client.cfg ../../stack/shacache-client.cfg
develop += /opt/slapdev
versions = versions versions = versions
find-links += find-links +=
...@@ -19,6 +22,7 @@ parts = ...@@ -19,6 +22,7 @@ parts =
instance-recipe-egg instance-recipe-egg
xserver xserver
firefox firefox
xwd
versions = versions versions = versions
...@@ -43,20 +47,20 @@ eggs = ...@@ -43,20 +47,20 @@ eggs =
# Default template for the instance. # Default template for the instance.
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg url = ${:_profile_base_location_}/instance.cfg
md5sum = 5fc198144831525a196d7394e4b15f80 md5sum = 4803dbd479f36b2b744075af2bf25dc1
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
[versions] [versions]
# Use SlapOS patched zc.buildout # Use SlapOS patched zc.buildout
zc.buildout = 1.5.3-dev-SlapOS-010 zc.buildout = 1.6.0-dev-SlapOS-004
Jinja2 = 2.6 Jinja2 = 2.6
Werkzeug = 0.8.3 Werkzeug = 0.8.3
buildout-versions = 1.7 buildout-versions = 1.7
hexagonit.recipe.cmmi = 1.5.0 hexagonit.recipe.cmmi = 1.5.0
meld3 = 0.6.8 meld3 = 0.6.8
slapos.cookbook = 0.42 # slapos.cookbook = 0.42
slapos.recipe.build = 0.7 slapos.recipe.build = 0.7
slapos.recipe.template = 2.2 slapos.recipe.template = 2.2
......
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