2007-01-04 07:23:48 -06:00
|
|
|
|
|
|
|
util-linux regression tests
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
It's expected that for each invasive change or important bugfix you will
|
|
|
|
include a test to your patch.
|
|
|
|
|
2012-07-30 11:37:54 -05:00
|
|
|
Compile tests & run basic tests:
|
2012-07-30 10:59:16 -05:00
|
|
|
|
2012-07-30 11:37:54 -05:00
|
|
|
$ make check
|
2007-01-04 07:23:48 -06:00
|
|
|
|
2012-08-02 13:19:14 -05:00
|
|
|
Note that the configure option --disable-static disables many of libmount and
|
|
|
|
libblkid unit tests.
|
|
|
|
|
2012-07-30 11:37:54 -05:00
|
|
|
Run all tests including tests that require root permissions:
|
2007-01-04 07:23:48 -06:00
|
|
|
|
2012-07-30 11:37:54 -05:00
|
|
|
# cd tests
|
|
|
|
# ./run.sh [--verbose] [--memcheck]
|
2007-01-04 07:23:48 -06:00
|
|
|
|
2012-08-03 14:33:32 -05:00
|
|
|
note that as root you have to manually remove output and diff directories
|
|
|
|
|
|
|
|
# rm -rf output diff
|
|
|
|
|
|
|
|
or run 'make clean' as root.
|
|
|
|
|
|
|
|
|
2010-03-31 10:18:23 -05:00
|
|
|
Run subset of tests:
|
2007-01-04 07:23:48 -06:00
|
|
|
|
2012-07-30 11:37:54 -05:00
|
|
|
$ ./run.sh <test_directory-name>
|
2010-03-31 10:18:23 -05:00
|
|
|
|
|
|
|
for example:
|
|
|
|
|
2012-07-30 11:37:54 -05:00
|
|
|
$ ./run.sh blkid
|
|
|
|
$ ./run.sh libmount
|
2007-01-04 07:23:48 -06:00
|
|
|
|
2007-05-25 07:53:22 -05:00
|
|
|
|
|
|
|
|
2012-07-30 11:37:54 -05:00
|
|
|
*** WARNING for root users ***
|
2007-05-25 07:53:22 -05:00
|
|
|
|
2012-08-03 14:33:32 -05:00
|
|
|
The tests touch your /etc/fstab, initialize loop devices or scsi_debug devices
|
|
|
|
if executed with root permissions.
|
|
|
|
|
|
|
|
Please, be careful and use these tests only for development and never on
|
|
|
|
production system.
|