]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Give an example how to run the unit tests
authorSebastian Hahn <sebastian@torproject.org>
Fri, 12 Sep 2014 20:08:27 +0000 (22:08 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 12 Sep 2014 20:08:27 +0000 (22:08 +0200)
doc/HACKING

index 4e9c4e305b323709ff5a50cd652ab3ed6f8ec095..b1733abf4c0a1fcfae41ea0c135fbe7a5f4a3d20 100644 (file)
@@ -134,6 +134,22 @@ output directory, use `make coverage-html HTML_COVER_DIR=./funky_new_cov_dir`.
 Coverage diffs using lcov are not currently implemented, but are being
 investigated (as of July 2014).
 
+Running the unit tests
+~~~~~~~~~~~~~~~~~~~~~~
+
+To quickly run all tests:
+-----
+   make test
+-----
+
+To selectively run just some tests (the following can be combined
+arbitrarily):
+-----
+   ./src/test/test <name_of_test> [<name of test 2>] ...
+   ./src/test/test <prefix_of_name_of_test>.. [<prefix_of_name_of_test2>..] ...
+   ./src/test/test :<name_of_excluded_test> [:<name_of_excluded_test2]...
+-----
+
 Running gcov for unit test coverage
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~