summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-17 12:01:37 -0400
committerEdward Thomson <ethomson@github.com>2016-03-17 12:01:37 -0400
commit1308059d9561b0daedd88c832b2c9e5bf2dcbb00 (patch)
treee4ba994b244e3107c2b56cba0ccb49c94a8d4e2b
parentba3493228cd16136620757b03a4df01f8caf5057 (diff)
downloadlibgit2-1308059d9561b0daedd88c832b2c9e5bf2dcbb00.tar.gz
CONTRIBUTING: document the optional tests
-rw-r--r--CONTRIBUTING.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 71fad63a9..28a143570 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -94,7 +94,7 @@ the change, but pass with your changes.
In addition to new tests, please ensure that your changes do not cause
any other test failures. Running the entire test suite is helpful
before you submit a pull request. When you build libgit2, the test
-suite will also be built. You can run all tests by simply running
+suite will also be built. You can run most of the tests by simply running
the resultant `libgit2_clar` binary. If you want to run a specific
unit test, you can name it with the `-s` option. For example:
@@ -105,6 +105,21 @@ worktree status tests:
libgit2_clar -sstatus::worktree
+The default test run is fairly exhaustive, but it will exclude some
+unit tests by default: in particular, those that talk to network
+servers and the tests that manipulate the filesystem in onerous
+ways (and may need to have special privileges to run). To run the
+network tests:
+
+ libgit2_clar -ionline
+
+In addition, various tests may be enabled by environment variables,
+like the ones that write exceptionally large repositories or manipulate
+the filesystem structure in unexpected ways. These tests *may be
+dangerous* to run on a normal machine and may harm your filesystem. It's
+not recommended that you run these; instead, the continuous integration
+servers will run these (in a sandbox).
+
## Porting Code From Other Open-Source Projects
`libgit2` is licensed under the terms of the GPL v2 with a linking