aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/README
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-05 11:59:29 +0000
committerJustus Winter <[email protected]>2016-09-05 12:05:19 +0000
commit65a7563edbbab8f93fe901f932065687508788de (patch)
tree8e62f552d1122cbd1d49e1553448dab9b80e28d8 /tests/openpgp/README
parenttests: Pass flags to test driver. (diff)
downloadgnupg-65a7563edbbab8f93fe901f932065687508788de.tar.gz
gnupg-65a7563edbbab8f93fe901f932065687508788de.zip
tests: Update README.
* tests/openpgp/README: Update. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/openpgp/README')
-rw-r--r--tests/openpgp/README30
1 files changed, 22 insertions, 8 deletions
diff --git a/tests/openpgp/README b/tests/openpgp/README
index 9b384beb1..84faf1cdd 100644
--- a/tests/openpgp/README
+++ b/tests/openpgp/README
@@ -1,22 +1,36 @@
# Emacs, this is an -*- org -*- file.
* How to run the test suite
-** using the legacy driver
-On POSIX you can just use
+From your build directory, run
- $ make -C tests/openpgp check
+ obj $ make -C tests/openpgp check
-or
+to run all tests or
- $ make -C tests/openpgp check XTESTS="setup.scm your-test.scm finish.scm"
+ obj $ make -C tests/openpgp check XTESTS=your-test.scm
-as before.
-** using the Scheme driver
+to run a specific test (or any number of tests separated by spaces).
+
+If you want to debug a test, add verbose=1 to see messages printed by
+spawned programs to their standard error stream, verbose=2 to see what
+programs are executed, or verbose=3 to see even more program output
+and exit codes.
+
+** Passing options to the test driver
+
+You can set TESTFLAGS to pass flags to 'run-tests.scm'. For example,
+to speed up the test suite when bisecting, do
+
+ obj $ make -C tests/openpgp check TESTFLAGS=--parallel
+
+See below for the arguments supported by the driver.
+
+** Calling the test driver directly
This is a bit tricky because one needs to manually set some
environment variables. We should make that easier. See discussion
below. From your build directory, do:
- obj $ srcdir=<path to>/tests/openpgp \
+ obj $ TMP=/tmp srcdir=<path to>/tests/openpgp \
GPGSCM_PATH=<path to>/tests/gpgscm:<path to>/tests/openpgp \
$(pwd)/tests/gpgscm/gpgscm [gpgscm args] \
run-tests.scm [test suite runner args]