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
HongzheWang
slapos
Commits
7c3f6497
Commit
7c3f6497
authored
Nov 10, 2021
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Plain Diff
caucase: set up a host file which specified for it
See merge request
nexedi/slapos!1074
parents
3397d76d
5d6876fc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
software/slapos-testing/buildout.hash.cfg
software/slapos-testing/buildout.hash.cfg
+1
-1
software/slapos-testing/instance.cfg
software/slapos-testing/instance.cfg
+11
-3
software/slapos-testing/software.cfg
software/slapos-testing/software.cfg
+1
-0
No files found.
software/slapos-testing/buildout.hash.cfg
View file @
7c3f6497
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
2a0edca6e0aa2c1277747c980bc0f256
md5sum =
84bd6729e9b299c457cea2d1be6d05a4
software/slapos-testing/instance.cfg
View file @
7c3f6497
...
@@ -32,6 +32,16 @@ repository = ${kedifa-repository:location}
...
@@ -32,6 +32,16 @@ repository = ${kedifa-repository:location}
<= download-source
<= download-source
repository = ${caucase-repository:location}
repository = ${caucase-repository:location}
[caucase-test-runner]
recipe = slapos.recipe.template:jinja2
template = inline:#!/bin/sh
export HOSTS="$(mktemp)"
trap 'rm "$HOSTS"' EXIT
printf '%s testhost\n%s testhost\n' "$SLAPOS_TEST_IPV4" "$SLAPOS_TEST_IPV6" > "$HOSTS"
export CAUCASE_NETLOC=testhost:8000 LD_PRELOAD=${userhosts:location}/lib/userhosts.so:$LD_PRELOAD
exec python -m unittest discover -v
rendered = $${caucase:location}/host_setting.sh
[slapos.libnetworkcache]
[slapos.libnetworkcache]
<= download-source
<= download-source
repository = ${slapos.libnetworkcache-repository:location}
repository = ${slapos.libnetworkcache-repository:location}
...
@@ -98,9 +108,7 @@ template = inline:
...
@@ -98,9 +108,7 @@ template = inline:
)
)
TestCase(
TestCase(
"caucase",
"caucase",
# XXX caucase uses 2to3 dynamically in setup.py, so it only supports
['$${caucase-test-runner:rendered}'],
# runnning tests with python setup.py test
['python', 'setup.py', 'test'],
cwd="""$${caucase:location}""",
cwd="""$${caucase:location}""",
summaryf=UnitTest.summary,
summaryf=UnitTest.summary,
)
)
...
...
software/slapos-testing/software.cfg
View file @
7c3f6497
...
@@ -16,6 +16,7 @@ extends =
...
@@ -16,6 +16,7 @@ extends =
../../component/jq/buildout.cfg
../../component/jq/buildout.cfg
../../component/sed/buildout.cfg
../../component/sed/buildout.cfg
../../component/grep/buildout.cfg
../../component/grep/buildout.cfg
../../component/userhosts/buildout.cfg
../../stack/slapos.cfg
../../stack/slapos.cfg
../../stack/caucase/buildout.cfg
../../stack/caucase/buildout.cfg
../../stack/nxdtest.cfg
../../stack/nxdtest.cfg
...
...
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