Commit c7f33fd1 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

software/slapos-testing: test re6stnet in python3.11

don't test it in python2 anymore
parent 2cea0bf2
[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 = 43b11a472c2c457a7a48a89242b54880f565856f
repository = https://lab.nexedi.com/nexedi/nemu3.git
[python-nemu3]
recipe = zc.recipe.egg:develop
egg = nemu3
setup = ${python-nemu3-repository:location}
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = 5f5378550470b551d280dd432878a0ba md5sum = fd49b60268a2f58f758c1f4cf81114c2
...@@ -94,8 +94,9 @@ repository = ${re6stnet-repository:location} ...@@ -94,8 +94,9 @@ repository = ${re6stnet-repository:location}
[re6stnet-test-runner] [re6stnet-test-runner]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = inline:#!/bin/sh template = inline:#!/bin/sh
#change #!/usr/bin/python2 -> #!/real_python_path/bin/pythonVersion # put python3 in PATH for ovpn-server and ovpn-client scripts
sed '1s?/usr/bin/python2?${python:location}/bin/python${python:version}?' -i ${re6stnet-repository:location}/re6st/ovpn-* export PATH=${python:location}/bin:$$PATH
# update files in /sys/class/net # update files in /sys/class/net
mount -t sysfs sysfs /sys mount -t sysfs sysfs /sys
...@@ -120,6 +121,7 @@ output = $${:workdir}/.nxdtest ...@@ -120,6 +121,7 @@ output = $${:workdir}/.nxdtest
workdir = $${create-directory:nxdtest-working-dir} workdir = $${create-directory:nxdtest-working-dir}
inline = inline =
import six import six
import sys
TestCase( TestCase(
"kedifa", "kedifa",
['python', '-m', 'unittest', 'discover', '-v'], ['python', '-m', 'unittest', 'discover', '-v'],
...@@ -215,7 +217,7 @@ inline = ...@@ -215,7 +217,7 @@ inline =
cwd="""$${rubygemsrecipe:location}""", cwd="""$${rubygemsrecipe:location}""",
summaryf=UnitTest.summary, summaryf=UnitTest.summary,
) )
if six.PY2: if sys.version_info >= (3,11):
TestCase( TestCase(
"re6stnet", "re6stnet",
['unshare', '-Umnr', '$${re6stnet-test-runner:rendered}'], ['unshare', '-Umnr', '$${re6stnet-test-runner:rendered}'],
......
...@@ -8,9 +8,5 @@ part = python2.7 ...@@ -8,9 +8,5 @@ part = python2.7
[openssl] [openssl]
<= openssl-1.1 <= openssl-1.1
[extra-eggs]
eggs +=
${re6stnet-setup:egg}
[versions] [versions]
pathlib = 1.0.1 pathlib = 1.0.1
...@@ -4,3 +4,7 @@ extends = ...@@ -4,3 +4,7 @@ extends =
[python3] [python3]
<= python3.11 <= python3.11
[extra-eggs]
eggs +=
${re6stnet-setup:egg}
...@@ -9,6 +9,7 @@ extends = ...@@ -9,6 +9,7 @@ extends =
../../component/zlib/buildout.cfg ../../component/zlib/buildout.cfg
../../component/phantomjs/buildout.cfg ../../component/phantomjs/buildout.cfg
../../component/pycurl/buildout.cfg ../../component/pycurl/buildout.cfg
../../component/python-nemu3/buildout.cfg
../../component/coreutils/buildout.cfg ../../component/coreutils/buildout.cfg
../../component/socat/buildout.cfg ../../component/socat/buildout.cfg
../../component/lmsensors/buildout.cfg ../../component/lmsensors/buildout.cfg
...@@ -145,6 +146,7 @@ eggs += ...@@ -145,6 +146,7 @@ eggs +=
${lxml-python:egg} ${lxml-python:egg}
${python-PyYAML:egg} ${python-PyYAML:egg}
${python-cryptography:egg} ${python-cryptography:egg}
${python-nemu3:egg}
${pycurl:egg} ${pycurl:egg}
${bcrypt:egg} ${bcrypt:egg}
${kedifa-setup:egg} ${kedifa-setup:egg}
...@@ -243,6 +245,7 @@ repository = https://lab.nexedi.com/nexedi/rubygemsrecipe.git ...@@ -243,6 +245,7 @@ repository = https://lab.nexedi.com/nexedi/rubygemsrecipe.git
[re6stnet-repository] [re6stnet-repository]
<= git-clone-repository <= git-clone-repository
repository = https://lab.nexedi.com/nexedi/re6stnet.git repository = https://lab.nexedi.com/nexedi/re6stnet.git
branch = re6st-py3
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
...@@ -281,6 +284,7 @@ zope.testing = 4.6.2 ...@@ -281,6 +284,7 @@ zope.testing = 4.6.2
iniparse = 0.5 iniparse = 0.5
miniupnpc = 1.9 miniupnpc = 1.9
nemu = 0.3.1 nemu = 0.3.1
nemu3 = 0.4
multiping = 1.1.2 multiping = 1.1.2
python-passfd = 0.2 python-passfd = 0.2
python-unshare = 0.2 python-unshare = 0.2
...@@ -337,6 +337,7 @@ typeguard = 3.0.2:whl ...@@ -337,6 +337,7 @@ typeguard = 3.0.2:whl
typing-extensions = 4.8.0:whl typing-extensions = 4.8.0:whl
tzlocal = 1.5.1 tzlocal = 1.5.1
unicodecsv = 0.14.1 unicodecsv = 0.14.1
unshare = 0.22
uritemplate = 4.1.1 uritemplate = 4.1.1
urllib3 = 1.26.12 urllib3 = 1.26.12
wcwidth = 0.2.5 wcwidth = 0.2.5
......
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