Commit 53f60e29 authored by Sebastien Robin's avatar Sebastien Robin

install the runTestSuite command

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45592 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55b97101
......@@ -79,6 +79,7 @@ parts =
eggs
instance-recipe-egg
testrunner
test_suite_runner
# basic Xorg
libXdmcp
......@@ -210,6 +211,26 @@ initialization =
os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
os.environ['ZOPE_SCRIPTS'] = ''
[test_suite_runner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
# expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
runTestSuite=Products.ERP5Type.tests.runTestSuite:main
scripts = runTestSuite
initialization =
import os
import sys
import Products
[Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
Products.__path__.extend(reversed('''${products:list}'''.split()))
import Zope2
os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
os.environ['ZOPE_SCRIPTS'] = ''
[pycrypto-python]
# This is a workaround for pkg_resources.ExtractionError: Can't extract file(s) to egg cache
# Note that currently we are stuck with develop eggs
......
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