Update slapos-testing to use updated egg_test recipe.

It currently tests slapos.core, slapos.recipe.build, slapos.recipe.template.
parent 37f3a15f
...@@ -6,15 +6,16 @@ eggs-directory = ${buildout:eggs-directory} ...@@ -6,15 +6,16 @@ eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true offline = true
[download-source] [create-directory]
recipe = plone.recipe.command recipe = slapos.cookbook:mkdirectory
location = $${rootdirectory:source-code}/$${:_buildout_section_name_} etc = $${buildout:directory}/etc
stop-on-error = true services = $${:etc}/run
branch = master srv = $${buildout:directory}/srv
revision = source-code = $${:srv}/eggs-source-code
command = "${git:location}/bin/git" clone --quiet --branch "$${:branch}" "$${:repository}" "$${:location}" && if [ -n "$${:revision}" ]; then cd "$${:location}" && "${git:location}/bin/git" reset --quiet --hard "$${:revision}" ; fi
update-command = cd "$${:location}" && "${git:location}/bin/git" fetch && if [ -n "$${:revision}" ]; then "${git:location}/bin/git" reset --hard "$${:revision}"; else "${git:location}/bin/git" reset --hard @{upstream} ; fi
[download-source]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
# Local development # Local development
[slapos.core] [slapos.core]
...@@ -25,22 +26,25 @@ repository = ${slapos.core-repository:location} ...@@ -25,22 +26,25 @@ repository = ${slapos.core-repository:location}
<= download-source <= download-source
repository = ${slapos.recipe.template-repository:location} repository = ${slapos.recipe.template-repository:location}
[slapos.recipe.build]
<= download-source
repository = ${slapos.recipe.build-repository:location}
[slapos-test-runner] [slapos-test-runner]
recipe = slapos.cookbook:egg_test recipe = slapos.cookbook:egg_test
run-test-suite = $${buildout:bin-directory}/runTestSuite run-test-suite = $${buildout:bin-directory}/runTestSuite
run-test-suite-binary = ${buildout:bin-directory}/runTestSuite run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
# The list of executables should be defined here and a combination # The list of executables should be defined here and a combination
# of tests should dynamically generated. # of tests should dynamically generated.
#python-list = $${} #python-list = $${}
test-list =
test-list = $${slapos.recipe.template:location},$${slapos.core:location} $${slapos.core:location}
$${slapos.recipe.template:location}
[rootdirectory] $${slapos.recipe.build:location}
recipe = slapos.cookbook:mkdirectory prepend-path = ${libxslt:location}/bin:${python2.7:location}/bin
etc = $${buildout:directory}/etc environment = environment
srv = $${buildout:directory}/srv
source-code = $${:srv}/eggs-source-code [environment]
bin = $${buildout:directory}/bin CPPFLAGS = -I${python2.7:location}/include/python2.7 -I${libxml2:location}/include -I${libxslt:location}/include
LDFLAGS = -L${python2.7:location}/lib -L${libxml2:location}/lib -L${libxslt:location}/lib -L${zlib:location}/lib
PYTHONPATH = ${setuptools:location}
[buildout] [buildout]
extends = ../../stack/slapos.cfg
../../component/lxml-python/buildout.cfg
../../component/git/buildout.cfg
parts = erp5.util-repository extends =
slapos.cookbook-repository ../../component/git/buildout.cfg
runTestSuite ../../component/lxml-python/buildout.cfg
eggs ../../component/libxml2/buildout.cfg
slapos.core-repository ../../component/libxslt/buildout.cfg
slapos.recipe.template-repository ../../component/python-2.7/buildout.cfg
template ../../component/setuptools/buildout.cfg
../../component/zlib/buildout.cfg
../../stack/slapos.cfg
develop = ${buildout:parts-directory}/erp5.util-repository parts =
${buildout:parts-directory}/slapos.cookbook-repository slapos.cookbook-repository
slapos.core-repository
[erp5.util-repository] slapos.recipe.template-repository
<= download-source slapos.recipe.build-repository
repository = http://git.erp5.org/repos/erp5.git eggs
branch = master template
[slapos.cookbook-repository]
<= download-source
repository = http://git.erp5.org/repos/slapos.git
branch = slapos-testing
[eggs] [eggs]
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = eggs =
${lxml-python:egg} ${lxml-python:egg}
erp5.util
slapos.cookbook slapos.cookbook
[runTestSuite]
recipe = zc.recipe.egg
eggs =
erp5.util
entry-points = entry-points =
runTestSuite=erp5.util.testsuite:runTestSuite runTestSuite=erp5.util.testsuite:runTestSuite
scripts =
scripts =
runTestSuite runTestSuite
[download-source] [erp5.util-repository]
recipe = plone.recipe.command recipe = slapos.recipe.build:gitclone
location = ${buildout:parts-directory}/${:_buildout_section_name_} git-executable = ${git:location}/bin/git
stop-on-error = true forbid-download-cache = true
repository = http://git.erp5.org/repos/erp5.git
branch = master branch = master
revision =
command = "${git:location}/bin/git" clone --quiet --branch "${:branch}" "${:repository}" "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi [slapos.cookbook-repository]
update-command = cd "${:location}" && "${git:location}/bin/git" fetch && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --hard @{upstream} ; fi recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
forbid-download-cache = true
repository = http://git.erp5.org/repos/slapos.git
branch = slapos-testing
[slapos.core-repository] [slapos.core-repository]
<= download-source recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
forbid-download-cache = true
repository = http://git.erp5.org/repos/slapos.core.git repository = http://git.erp5.org/repos/slapos.core.git
branch = master
[slapos.recipe.template-repository] [slapos.recipe.template-repository]
<= download-source recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
forbid-download-cache = true
repository = http://git.erp5.org/repos/slapos.recipe.template.git repository = http://git.erp5.org/repos/slapos.recipe.template.git
branch = master
[slapos.recipe.build-repository]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
forbid-download-cache = true
repository = http://git.erp5.org/repos/slapos.recipe.build.git
branch = master
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg url = ${:_profile_base_location_}/instance.cfg
md5sum = d2a167a6441d5170a027b3771932fe7f md5sum = d233cfac7c71e8b8fa4bd9f1a7fe58ee
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
mode = 640 mode = 640
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