diff --git a/software/erp5-util-testing/instance.cfg b/software/erp5-util-testing/instance.cfg new file mode 100644 index 0000000000000000000000000000000000000000..377a1479f2d3a3cac6e542ef122fee67609141de --- /dev/null +++ b/software/erp5-util-testing/instance.cfg @@ -0,0 +1,56 @@ +[buildout] +parts = + test-runner + sh-environment + +eggs-directory = ${buildout:eggs-directory} +develop-eggs-directory = ${buildout:develop-eggs-directory} +offline = true + +[create-directory] +recipe = slapos.cookbook:mkdirectory +bin = $${buildout:directory}/bin +etc = $${buildout:directory}/etc +services = $${:etc}/run +srv = $${buildout:directory}/srv +source-code = $${:srv}/eggs-source-code + +[download-source] +recipe = slapos.recipe.build:gitclone +git-executable = ${git:location}/bin/git + +# Local development +[erp5-util] +<= download-source +repository = ${erp5-util-repository:location} + +[test-runner] +recipe = slapos.cookbook:egg_test +run-test-suite = $${create-directory:bin}/runTestSuite +run-test-suite-binary = ${buildout:bin-directory}/runTestSuite +# The list of executables should be defined here and a combination +# of tests should dynamically generated. +#python-list = $${} +test-list = + $${erp5-util:location} +prepend-path = ${git:location}/bin:${libxslt:location}/bin:${python2.7:location}/bin +environment = environment + +[environment] +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 = ${python-setuptools:location} +LD_LIBRARY_PATH = ${libxslt:location}/lib + +[sh-environment] +# Section exposes testing default environment as sh file. It is thus easy +# to directly develop and test the egg inside of this instance. +recipe = collective.recipe.template +input = inline: + export PATH="$${test-runner:prepend-path}:$PATH" + export CPPFLAGS="$${environment:CPPFLAGS}" + export LDFLAGS="$${environment:LDFLAGS}" + export PYTHONPATH="$${environment:PYTHONPATH}" + export PS1="[slapos-testing env Active] $PS1" +output = $${create-directory:bin}/environment.sh +mode = 755 diff --git a/software/erp5-util-testing/software.cfg b/software/erp5-util-testing/software.cfg new file mode 100644 index 0000000000000000000000000000000000000000..ce2bcfb2bcf841b34a228e58615883fa63e3a7d4 --- /dev/null +++ b/software/erp5-util-testing/software.cfg @@ -0,0 +1,117 @@ +[buildout] + +extends = + ../../component/git/buildout.cfg + ../../component/lxml-python/buildout.cfg + ../../component/libxml2/buildout.cfg + ../../component/libxslt/buildout.cfg + ../../component/python-2.7/buildout.cfg + ../../component/python-setuptools/buildout.cfg + ../../component/zlib/buildout.cfg + ../../stack/slapos.cfg + +parts = + slapos.cookbook-repository + erp5-util-repository + eggs + template + +[eggs] +recipe = zc.recipe.egg +eggs = + ${lxml-python:egg} + erp5.util + slapos.cookbook + collective.recipe.template +entry-points = + runTestSuite=erp5.util.testsuite:runTestSuite +scripts = + runTestSuite + +[slapos.cookbook-repository] +recipe = slapos.recipe.build:gitclone +git-executable = ${git:location}/bin/git +forbid-download-cache = true +repository = http://git.erp5.org/repos/slapos.git +branch = master + +[erp5-util-repository] +recipe = slapos.recipe.build:gitclone +git-executable = ${git:location}/bin/git +forbid-download-cache = true +repository = http://git.erp5.org/repos/erp5.git +branch = master + +[template] +recipe = slapos.recipe.template +url = ${:_profile_base_location_}/instance.cfg +md5sum = 1c93d4dd875b1ad5aec6a6bfb630a97a +output = ${buildout:directory}/template.cfg +mode = 640 + +[versions] +Jinja2 = 2.6 +Werkzeug = 0.8.3 +buildout-versions = 1.7 +erp5.util = 0.4.7 +hexagonit.recipe.cmmi = 1.6 +lxml = 2.3.6 +meld3 = 0.6.8 +plone.recipe.command = 1.1 +slapos.cookbook = 0.65 +slapos.libnetworkcache = 0.13.2 +slapos.recipe.build = 0.11.2 +slapos.recipe.download = 1.0.dev-r4053 +slapos.recipe.template = 2.4.2 + +# Required by: +# slapos.core==0.28.5 +Flask = 0.9 + +# Required by: +# slapos.cookbook==0.65 +PyXML = 0.8.4 + +# Required by: +# hexagonit.recipe.cmmi==1.6 +hexagonit.recipe.download = 1.5.1 + +# Required by: +# slapos.cookbook==0.65 +inotifyx = 0.2.0 + +# Required by: +# slapos.cookbook==0.65 +netaddr = 0.7.10 + +# Required by: +# slapos.core==0.28.5 +netifaces = 0.8 + +# Required by: +# erp5.util==0.4.7 +# slapos.cookbook==0.65 +# slapos.core==0.28.5 +# zc.buildout==1.6.0-dev-SlapOS-006 +# zc.recipe.egg==1.3.2 +setuptools = 0.6c12dev-r88846 + +# Required by: +# slapos.cookbook==0.65 +slapos.core = 0.28.5 + +# Required by: +# slapos.core==0.28.5 +supervisor = 3.0a12 + +# Required by: +# slapos.cookbook==0.65 +xml-marshaller = 0.9.7 + +# Required by: +# slapos.cookbook==0.65 +zc.recipe.egg = 1.3.2 + +# Required by: +# slapos.core==0.28.5 +zope.interface = 4.0.1