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

add re6stnet unittest in slapos testing

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