]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
README.md: document how to run unit tests (with autotools)
authorSage Weil <sage@redhat.com>
Wed, 15 Jun 2016 20:54:53 +0000 (16:54 -0400)
committerSage Weil <sage@redhat.com>
Thu, 16 Jun 2016 18:14:11 +0000 (14:14 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
README.md

index 96fd53c27afb8d7e864013f18bce9d75d2632188..2e31696cea133fc10471b56e404c5f36878e1eff 100644 (file)
--- 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
 ==========================