Add testing docs in README
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
4d8e13fc3e
commit
088fd3f6df
17
README.md
17
README.md
|
@ -43,6 +43,23 @@ If you do not with to build `runc` with seccomp support you can add `BUILDTAGS="
|
||||||
| selinux | selinux process and mount labeling | <none> |
|
| selinux | selinux process and mount labeling | <none> |
|
||||||
| apparmor | apparmor profile support | libapparmor |
|
| apparmor | apparmor profile support | libapparmor |
|
||||||
|
|
||||||
|
### Testing:
|
||||||
|
|
||||||
|
You can run tests for runC by using command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# make test
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that test cases are run in Docker container, so you need to install
|
||||||
|
`docker` first. And test requires mounting cgroups inside container, it's
|
||||||
|
done by docker now, so you need a docker version newer than 1.8.0-rc2.
|
||||||
|
|
||||||
|
You can also run specific test cases by:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# make test TESTFLAGS="-run=SomeTestFunction"
|
||||||
|
```
|
||||||
|
|
||||||
### Using:
|
### Using:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue