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
Carlos Ramos Carreño
slapos
Commits
0d9b655b
Commit
0d9b655b
authored
Apr 09, 2024
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/slapos-testing: test re6stnet in python3.11
don't test it in python2 anymore
parent
210e2d76
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
18 deletions
+29
-18
component/python-nemu3/buildout.cfg
component/python-nemu3/buildout.cfg
+17
-0
software/slapos-testing/buildout.hash.cfg
software/slapos-testing/buildout.hash.cfg
+1
-1
software/slapos-testing/instance.cfg
software/slapos-testing/instance.cfg
+3
-13
software/slapos-testing/software-py2.cfg
software/slapos-testing/software-py2.cfg
+0
-4
software/slapos-testing/software-py3next.cfg
software/slapos-testing/software-py3next.cfg
+4
-0
software/slapos-testing/software.cfg
software/slapos-testing/software.cfg
+3
-0
stack/slapos.cfg
stack/slapos.cfg
+1
-0
No files found.
component/python-nemu3/buildout.cfg
0 → 100644
View file @
0d9b655b
[buildout]
extends =
../../component/git/buildout.cfg
[python-nemu3-repository]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
forbid-download-cache = true
revision = 455179acc68326147b0c5007e9f80ab092ef4b02
repository = https://lab.nexedi.com/nexedi/nemu3.git
[python-nemu3]
recipe = zc.recipe.egg:develop
egg = nemu3
setup = ${python-nemu3-repository:location}
software/slapos-testing/buildout.hash.cfg
View file @
0d9b655b
...
...
@@ -15,4 +15,4 @@
[template]
filename = instance.cfg
md5sum =
5f5378550470b551d280dd432878a0ba
md5sum =
1d5db43637ab07704a368ae0877e3fd6
software/slapos-testing/instance.cfg
View file @
0d9b655b
...
...
@@ -91,17 +91,6 @@ repository = ${rubygemsrecipe-repository:location}
<= download-source
repository = ${re6stnet-repository:location}
[re6stnet-test-runner]
recipe = slapos.recipe.template:jinja2
template = inline:#!/bin/sh
#change #!/usr/bin/python2 -> #!/real_python_path/bin/pythonVersion
sed '1s?/usr/bin/python2?${python:location}/bin/python${python:version}?' -i ${re6stnet-repository:location}/re6st/ovpn-*
# update files in /sys/class/net
mount -t sysfs sysfs /sys
python -m unittest discover -v
rendered = $${re6stnet:location}/test-runner.sh
[slapos-test-runner-nxdtest-environment.sh]
recipe = slapos.recipe.template
output = $${create-directory:etc}/$${:_buildout_section_name_}
...
...
@@ -120,6 +109,7 @@ output = $${:workdir}/.nxdtest
workdir = $${create-directory:nxdtest-working-dir}
inline =
import six
import sys
TestCase(
"kedifa",
['python', '-m', 'unittest', 'discover', '-v'],
...
...
@@ -215,10 +205,10 @@ inline =
cwd="""$${rubygemsrecipe:location}""",
summaryf=UnitTest.summary,
)
if s
ix.PY2
:
if s
ys.version_info >= (3,11)
:
TestCase(
"re6stnet",
['unshare', '-Umnr', '
$${re6stnet-test-runner:rendered}
'],
['unshare', '-Umnr', '
python', '-m', 'unittest', 'discover', '-v
'],
cwd="""$${re6stnet:location}/re6st/tests""",
summaryf=UnitTest.summary,
)
...
...
software/slapos-testing/software-py2.cfg
View file @
0d9b655b
...
...
@@ -5,9 +5,5 @@ extends =
[python]
part = python2.7
[extra-eggs]
eggs +=
${re6stnet-setup:egg}
[versions]
pathlib = 1.0.1
software/slapos-testing/software-py3next.cfg
View file @
0d9b655b
...
...
@@ -4,3 +4,7 @@ extends =
[python3]
<= python3.11
[extra-eggs]
eggs +=
${re6stnet-setup:egg}
software/slapos-testing/software.cfg
View file @
0d9b655b
...
...
@@ -9,6 +9,7 @@ extends =
../../component/zlib/buildout.cfg
../../component/phantomjs/buildout.cfg
../../component/pycurl/buildout.cfg
../../component/python-nemu3/buildout.cfg
../../component/coreutils/buildout.cfg
../../component/socat/buildout.cfg
../../component/lmsensors/buildout.cfg
...
...
@@ -145,6 +146,7 @@ eggs +=
${lxml-python:egg}
${python-PyYAML:egg}
${python-cryptography:egg}
${python-nemu3:egg}
${pycurl:egg}
${bcrypt:egg}
${kedifa-setup:egg}
...
...
@@ -281,6 +283,7 @@ zope.testing = 4.6.2
iniparse = 0.5
miniupnpc = 1.9
nemu = 0.3.1
nemu3 = 0.4
multiping = 1.1.2
python-passfd = 0.2
python-unshare = 0.2
stack/slapos.cfg
View file @
0d9b655b
...
...
@@ -336,6 +336,7 @@ typeguard = 3.0.2:whl
typing-extensions = 4.8.0:whl
tzlocal = 1.5.1
unicodecsv = 0.14.1
unshare = 0.22
uritemplate = 4.1.1
urllib3 = 1.26.12
wcwidth = 0.2.5
...
...
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