Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
92a6af59
Commit
92a6af59
authored
Sep 30, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
10bcc28a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
component/pygolang/test/software.cfg
component/pygolang/test/software.cfg
+19
-1
software/neotest/neotest-runTestSuite.in
software/neotest/neotest-runTestSuite.in
+1
-1
stack/nxdtest.cfg
stack/nxdtest.cfg
+2
-0
stack/nxdtest/instance.cfg.in
stack/nxdtest/instance.cfg.in
+1
-1
No files found.
component/pygolang/test/software.cfg
View file @
92a6af59
...
@@ -5,6 +5,7 @@ extends =
...
@@ -5,6 +5,7 @@ extends =
../../../stack/nxdtest.cfg
../../../stack/nxdtest.cfg
../buildout-dev.cfg
../buildout-dev.cfg
# XXX kill pygolang (used by python)
parts =
parts =
pygolang
pygolang
gpython
gpython
...
@@ -16,9 +17,26 @@ parts =
...
@@ -16,9 +17,26 @@ parts =
# XXX correct ?
# XXX correct ?
[pygolang]
[pygolang]
eggs += pygolang[all_test]
eggs += pygolang[all_test]
# install python with sys.path to eggs
# use gpython, instead of pygolang, since interpreter works only for regular
# zc.recipe.egg, not zc.recipe.egg:custom XXX
# the `python` interreter will just set sys.path to pygolang, not activate gevent
[gpython]
interpreter = python
[pygolang-env.sh]
recipe = slapos.recipe.template:jinja2
rendered= ${buildout:directory}/${:_buildout_section_name_}
template= inline:
PATH=${buildout:bin-directory}:$PATH
# XXX python with eggs
# XXX needed? -> move to stack/nxdtest completely?
# XXX needed? -> move to stack/nxdtest completely?
[instance.cfg]
[instance.cfg]
<= nxdtest-instance.cfg
<= nxdtest-instance.cfg
env.sh = ${pygolang-env.sh:rendered}
workdir = ${pygolang-repository:location}
software/neotest/neotest-runTestSuite.in
View file @
92a6af59
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
# neotest's runTestSuite wraper so it could be run without any environment preset
# neotest's runTestSuite wraper so it could be run without any environment preset
.
${
buildout
:directory
}
/neotest-env.sh
.
${
buildout
:directory
}
/neotest-env.sh
exec
${
gowork
:src
}
/lab.nexedi.com/kirr/neo/go/neo/t/nxd/runTestSuite
"
$@
"
exec
nxdtest
${
gowork
:src
}
/lab.nexedi.com/kirr/neo/go/neo/t/.nxdtest
"
$@
"
stack/nxdtest.cfg
View file @
92a6af59
...
@@ -21,6 +21,8 @@ mode = 0644
...
@@ -21,6 +21,8 @@ mode = 0644
context =
context =
section buildout buildout
section buildout buildout
section nxdtest nxdtest
section nxdtest nxdtest
key env_sh :env.sh
# XXX env.sh - must be provided by user XXX or default empty?
[nxdtest]
[nxdtest]
...
...
stack/nxdtest/instance.cfg.in
View file @
92a6af59
...
@@ -24,5 +24,5 @@ t = ${:home}/t
...
@@ -24,5 +24,5 @@ t = ${:home}/t
[runTestSuite]
[runTestSuite]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:bin}/${:_buildout_section_name_}
wrapper-path = ${directory:bin}/${:_buildout_section_name_}
command-line = /bin/bash -c 'cd ${directory:t} && {{ nxdtest['exe'] }} "$@"' nxdtest
command-line = /bin/bash -c '
. {{ env_sh }} &&
cd ${directory:t} && {{ nxdtest['exe'] }} "$@"' nxdtest
# "$@" is implicitly added to argv
# "$@" is implicitly added to argv
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