Commit 2cbf5b18 authored by zhifan huang's avatar zhifan huang

add re6stnet unittest in slapos testing

parent fc0cfd30
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = ba6c572678687081ce111d3805be3cee md5sum = 3f99905ba5e8e38c600b598973a91016
...@@ -82,6 +82,10 @@ repository = ${slapos.rebootstrap-repository:location} ...@@ -82,6 +82,10 @@ repository = ${slapos.rebootstrap-repository:location}
<= download-source <= download-source
repository = ${rubygemsrecipe-repository:location} repository = ${rubygemsrecipe-repository:location}
[re6stnet]
<= download-source
repository = ${re6stnet-repository:location}
[slapos-test-runner-nxdtest-environment.sh] [slapos-test-runner-nxdtest-environment.sh]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
...@@ -189,6 +193,12 @@ template = inline: ...@@ -189,6 +193,12 @@ template = inline:
cwd="""$${rubygemsrecipe:location}""", cwd="""$${rubygemsrecipe:location}""",
summaryf=UnitTest.summary, summaryf=UnitTest.summary,
) )
TestCase(
"re6stnet",
['python', '-m', 'unittest', 'discover', '-v'],
cwd="""$${re6stnet:location}/re6st/tests""",
summaryf=UnitTest.summary,
)
[runTestSuite] [runTestSuite]
env.sh = $${slapos-test-runner-nxdtest-environment.sh:rendered} env.sh = $${slapos-test-runner-nxdtest-environment.sh:rendered}
......
...@@ -111,6 +111,12 @@ setup = ${slapos.rebootstrap-repository:location} ...@@ -111,6 +111,12 @@ setup = ${slapos.rebootstrap-repository:location}
egg = rubygemsrecipe[test] egg = rubygemsrecipe[test]
setup = ${rubygemsrecipe-repository:location} setup = ${rubygemsrecipe-repository:location}
[re6stnet-setup]
<= setup-develop-egg
egg = re6stnet[test]
setup = ${re6stnet-repository:location}
[eggs] [eggs]
<= python-interpreter <= python-interpreter
eggs += eggs +=
...@@ -134,6 +140,7 @@ eggs += ...@@ -134,6 +140,7 @@ eggs +=
${slapos.libnetworkcache-setup:egg} ${slapos.libnetworkcache-setup:egg}
${slapos.rebootstrap-setup:egg} ${slapos.rebootstrap-setup:egg}
${rubygemsrecipe-setup:egg} ${rubygemsrecipe-setup:egg}
${re6stnet-setup:egg}
zope.testing zope.testing
supervisor supervisor
...@@ -205,6 +212,11 @@ repository = https://lab.nexedi.com/nexedi/slapos.rebootstrap.git ...@@ -205,6 +212,11 @@ repository = https://lab.nexedi.com/nexedi/slapos.rebootstrap.git
<= git-clone-repository <= git-clone-repository
repository = https://lab.nexedi.com/nexedi/rubygemsrecipe.git repository = https://lab.nexedi.com/nexedi/rubygemsrecipe.git
[re6stnet-repository]
<= git-clone-repository
repository = https://lab.nexedi.com/nexedi/re6stnet.git
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename} url = ${:_profile_base_location_}/${:filename}
...@@ -250,3 +262,4 @@ zope.testing = 4.6.2 ...@@ -250,3 +262,4 @@ zope.testing = 4.6.2
urllib3 = 1.24.1 urllib3 = 1.24.1
pathlib = 1.0.1 pathlib = 1.0.1
psycopg2 = 2.8.6 psycopg2 = 2.8.6
miniupnpc = 1.9
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