2 util-linux regression tests
3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 It's expected that for each invasive change or important bugfix you will
6 include a test to your patch.
8 Compile tests & run basic tests:
12 Note that the configure option --disable-static disables many of libmount and
15 Run all tests including tests that require root permissions:
18 # ./run.sh [--verbose] [--memcheck]
20 Alternatively using sudo and make:
22 $ make check TS_COMMAND="true"
23 $ sudo -E make check TS_OPTS="--parallel=1"
25 note that as root you have to manually remove output and diff directories
29 or run 'make clean' as root.
34 $ ./run.sh <test_directory-name>
43 *** WARNING for root users ***
45 The tests touch your /etc/fstab, initialize loop devices or scsi_debug devices
46 if executed with root permissions.
48 Please, be careful and use these tests only for development and never on
57 Evaluated by "make check" to override the default command (run.sh).
59 - build all test dependencies, but skip the actual test
60 $ make check TS_COMMAND="true"
64 Evaluated by "make check" to pass options.to run.sh (see ./run.sh --help).
67 $ make check TS_OPTS="--parallel=1 utmp"
69 TS_OPT_testdir_[testscript_]fake="<yes|no>"
71 Evaluated by any test script to skip certain tests.
73 - skip all the tests within "fdisk" test-direcrory:
74 $ make check TS_OPT_fdisk_fake="yes"
76 - skip only "fdisk/bsd" test:
77 $ make check TS_OPT_fdisk_bsd_fake="yes"
79 - skip all "fdisk" tests except fdisk/bsd:
80 $ make check TS_OPT_fdisk_fake="yes" TS_OPT_fdisk_bsd_fake="no"
82 TS_OPT_testdir_[testscript_]known_fail="<yes|no>"
84 Similar usage like TS_OPT_*_fake above. "known_fail" means that the given
85 test will run but (negative) results will be ignored. The build log and test
86 diffs will still remind you about the issue.
88 TS_OPT_testdir_[testscript_]verbose="<yes|no>"
90 Set verbosity for certain tests. Similar usage like TS_OPT_*_fake above.
92 TS_OPT_testdir_[testscript_]memcheck="<yes|no>"
94 Run certain tests with valgrind. Similar usage like TS_OPT_*_fake above.