From 87cfea22e81257304716fd0d61a873ea4c1bffd7 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 5 Feb 2020 15:10:54 +0100 Subject: [PATCH] Describe how to run single tests Update tests/README to describe howto use the test suite other than just running everything. --- tests/README | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/README b/tests/README index 2dfd487a34..c7423a30fd 100644 --- a/tests/README +++ b/tests/README @@ -11,3 +11,26 @@ Then run The number of tests performed depends on enabled features at configure-time, at least --with/without-lua and --enable/--disable-python. See also the INSTALL file for more information. + +To run single tests you can run + + make populate_testing ; ./rpmtests NNN MMM ... + +where NNN and MMM are the numbers of the tests to be run. Use + + ./rpmtests -l + +to get the list of available tests. +You can also select tests by keywords used in their description by using + + ./rpmtests -k KEYWORD + +Use multiple -k parameters to have tests with different keywords run. +Use -k KEYWORD1,KEYWORD2 to execute tests matching both KEYWORD1 and KEYWORD2. + +See + + ./rpmtests --help + +for more options. But be aware some (like -j) may not work properly with +the test suite unless a very restricted set of test is run.