Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joanne Hugé
re6stnet
Commits
8ff8f61c
Commit
8ff8f61c
authored
Jul 28, 2022
by
zhifan huang
Committed by
Xiaowu Zhang
Aug 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add read.me for tests
parent
388566e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
re6st/tests/README.MD
re6st/tests/README.MD
+16
-0
No files found.
re6st/tests/README.MD
0 → 100644
View file @
8ff8f61c
If you clone this repo directly, you should add re6stnet to PYTHONPATH, so
python can find module re6st
To run all the tests, you have two methods: one is by creating a new user
namespace, the other is by using root privileges.
*
`unshare -Unr bash -c "mount -t sysfs /sys & python -m unittest discover"`
*
`python -m unittest discover`
The mount of /sys is because nemu will read files in /sys.
When creating a new network namespace, the exiting network devices will not
disappear, and a re-mount is needed to update /sys.
If you want to only run the unit tests
`python -m unittest discover`
is ok,
the network tests will be skipped.
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