From 55ff4da89066c09fdb7f50e5bbbc6902de9b96e5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Sun, 22 Sep 2019 13:39:40 +0200 Subject: [PATCH] docs: update howto-tests.txt Signed-off-by: Karel Zak --- Documentation/howto-tests.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/howto-tests.txt b/Documentation/howto-tests.txt index 71c7f85c1..4d302beea 100644 --- a/Documentation/howto-tests.txt +++ b/Documentation/howto-tests.txt @@ -5,21 +5,25 @@ It's expected that for each invasive change or important bugfix you will include a test to your patch. - Compile tests & run basic tests: + Compile binaries, libs, extra test programs and run the basic tests: $ make check + Compile extra test programs only: + + $ make check-programs + Note that the configure option --disable-static disables many of libmount and libblkid unit tests. Run all tests including tests that require root permissions: # cd tests - # ./run.sh [--verbose] [--memcheck] + # ./run.sh [options, see --help] Alternatively using sudo and make: - $ make check TS_COMMAND="true" + $ make check-programs $ sudo -E make check TS_OPTS="--parallel=1" note that as root you have to manually remove output and diff directories @@ -31,6 +35,7 @@ Run subset of tests: + $ cd tests $ ./run.sh for example: @@ -38,6 +43,10 @@ $ ./run.sh blkid $ ./run.sh libmount + or individual test script, for example: + + $ ./ts/cal/year + The tests is possible to exclude by ./run.sh --exclude= where the is blank separated test names in format "testdir/testname", for example: