From 088fd3f6df2acfbda5bdd21b52b03a115aec3b7c Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Tue, 15 Sep 2015 08:30:28 +0800 Subject: [PATCH] Add testing docs in README Signed-off-by: Qiang Huang --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 7fdf6a7ea..2e755c8e0 100644 --- a/README.md +++ b/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 | | | 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: