Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ekaterina
slapos
Commits
60092578
Commit
60092578
authored
Apr 27, 2020
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cython_test: generate a cython_env.sh for development
parent
f19b241c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
22 deletions
+37
-22
software/cython-test/runTestSuite.in
software/cython-test/runTestSuite.in
+3
-12
software/cython-test/software.cfg
software/cython-test/software.cfg
+34
-10
No files found.
software/cython-test/runTestSuite.in
View file @
60092578
...
@@ -7,19 +7,10 @@ from time import gmtime, strftime, time
...
@@ -7,19 +7,10 @@ from time import gmtime, strftime, time
from unittest import TextTestResult
from unittest import TextTestResult
from erp5.util import taskdistribution, testsuite
from erp5.util import taskdistribution, testsuite
{%- if prepend_path is defined %}
PATH = os.environ['PATH']
os.environ['PATH'] = {{ repr(prepend_path) }} + (PATH and os.pathsep + PATH)
{%- endif %}
os.environ['TEMP'] = {{ repr(tmpdir) }}
os.environ['TEMP'] = {{ repr(tmpdir) }}
os.environ['PYTHON'] = sys.executable
os.environ['PYTHONPATH'] = os.pathsep.join(
command = """. {{ cython_env_sh }}
sys.path[:-int(subprocess.check_output((
make all test
sys.executable, '-c', 'import sys;print(len(sys.path))')))])
command = """set -e {{ gettext_location }}/lib
make
LD_RUN_PATH=$1 LIBRARY_PATH=$1 make test
"""
"""
def parseTestStdOut(data):
def parseTestStdOut(data):
...
...
software/cython-test/software.cfg
View file @
60092578
...
@@ -41,19 +41,14 @@ template =
...
@@ -41,19 +41,14 @@ template =
key tmpdir directory:tmp
key tmpdir directory:tmp
key slapparameter_dict slap-configuration:configuration
key slapparameter_dict slap-configuration:configuration
key cython_repository cython-repository:location
key cython_repository cython-repository:location
raw runTestSuite_py ${buildout:bin-directory}/${runTestSuite_py:interpreter}
raw runTestSuite_py ${runTestSuite_py:bin-directory}/${runTestSuite_py:interpreter}
raw gettext_location ${gettext:location}
raw cython_env_sh ${cython_env.sh:rendered}
{%- if 'part' in gcc %}
raw prepend_path {{ gcc.prefix }}/bin
{%- endif %}
[cython-repository]
[cython-repository]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
repository = ${cython-repository:location}
repository = ${cython-repository:location}
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
shared = true
shared = true
context =
section gcc gcc
[cython-repository]
[cython-repository]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
...
@@ -64,16 +59,45 @@ sparse-checkout = /.gitignore
...
@@ -64,16 +59,45 @@ sparse-checkout = /.gitignore
[runTestSuite.in]
[runTestSuite.in]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_buildout_section_name_}
url = ${:_profile_base_location_}/${:_buildout_section_name_}
md5sum =
aea029e484875a1e6e69f9e2e1d9efdd
md5sum =
02094e80cde9631081077fc96b401065
[runTestSuite_py]
[runTestSuite_py]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
eggs = erp5.util
interpreter = ${:_buildout_section_name_}
[eggs]
recipe = zc.recipe.egg
eggs =
eggs =
erp5.util
${numpy:egg}
${numpy:egg}
coverage
coverage
pycodestyle
pycodestyle
interpreter = ${:_buildout_section_name_}
[cython_env.sh]
recipe = slapos.recipe.template:jinja2
rendered = ${buildout:directory}/${:_buildout_section_name_}
template =
inline:{% set path, python = os.path.split(python) -%}
{% if 'part' in gcc -%}
{% set path = path + ':' + gcc.prefix + '/bin' -%}
{% endif -%}
export PATH={{ path }}:$PATH
export PYTHON={{ python }}
export PYTHONPATH={{ ':'.join(easy_install.working_set(eggs['eggs'].split(), [
eggs['develop-eggs-directory'],
eggs['eggs-directory'],
]).entries) }}$${PYTHONPATH:+:$PYTHONPATH}
# EmbedTest needs libintl.
export LD_RUN_PATH={{ gettext }}/lib$${LD_RUN_PATH:+:$LD_RUN_PATH}
export LIBRARY_PATH={{ gettext }}/lib$${LIBRARY_PATH:+:$LIBRARY_PATH}
{##}
context =
section eggs eggs
section gcc gcc
key gettext gettext:location
key python python:executable
import os os
import easy_install zc.buildout.easy_install
[versions]
[versions]
slapos.recipe.template = 4.4
slapos.recipe.template = 4.4
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment