From e0203b91babf3ad6646f66a53a9b89306f1f4232 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 15 Jun 2016 16:54:53 -0400 Subject: [PATCH] README.md: document how to run unit tests (with autotools) Signed-off-by: Sage Weil --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 96fd53c27afb8..2e31696cea133 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,38 @@ For RPM-based systems (Red Hat, SUSE, etc.), rpmbuild +Running unit tests +================== + +Autotools +--------- + +To run all tests, a simple + + cd src + make check + +will suffice. + +To run an individual test manually, you may want to clean up with + + rm -rf testdir /tmp/*virtualenv + ./stop.sh + +and then run a given test like so: + + ./unittest_addrs + +Many tests are bash scripts that spin up small test clusters, and must be run +like so: + + CEPH_DIR=. test/osd/osd-bench.sh # or whatever the test is + +CMake +----- + +??? + Building the Documentation ========================== -- 2.39.5