]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
docs: update howto-tests.txt
authorKarel Zak <kzak@redhat.com>
Sun, 22 Sep 2019 11:39:40 +0000 (13:39 +0200)
committerKarel Zak <kzak@redhat.com>
Sun, 22 Sep 2019 11:39:40 +0000 (13:39 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/howto-tests.txt

index 71c7f85c1612719c82954fc136387c71e45ddfbd..4d302beea5e3879432b123325258c551d4cf480b 100644 (file)
@@ -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 <test_directory-name>
 
         for example:
               $ ./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=<list>  where the
  <list> is blank separated test names in format "testdir/testname", for example: