2007-01-04 14:23:48 +01: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 18:37:54 +02:00
|
|
|
Compile tests & run basic tests:
|
2012-07-30 17:59:16 +02:00
|
|
|
|
2012-07-30 18:37:54 +02:00
|
|
|
$ make check
|
2007-01-04 14:23:48 +01:00
|
|
|
|
2012-08-02 20:19:14 +02:00
|
|
|
Note that the configure option --disable-static disables many of libmount and
|
|
|
|
libblkid unit tests.
|
|
|
|
|
2012-07-30 18:37:54 +02:00
|
|
|
Run all tests including tests that require root permissions:
|
2007-01-04 14:23:48 +01:00
|
|
|
|
2012-07-30 18:37:54 +02:00
|
|
|
# cd tests
|
|
|
|
# ./run.sh [--verbose] [--memcheck]
|
2007-01-04 14:23:48 +01:00
|
|
|
|
2012-08-03 21:33:32 +02: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 17:18:23 +02:00
|
|
|
Run subset of tests:
|
2007-01-04 14:23:48 +01:00
|
|
|
|
2012-07-30 18:37:54 +02:00
|
|
|
$ ./run.sh <test_directory-name>
|
2010-03-31 17:18:23 +02:00
|
|
|
|
|
|
|
for example:
|
|
|
|
|
2012-07-30 18:37:54 +02:00
|
|
|
$ ./run.sh blkid
|
|
|
|
$ ./run.sh libmount
|
2007-01-04 14:23:48 +01:00
|
|
|
|
2007-05-25 14:53:22 +02:00
|
|
|
|
|
|
|
|
2012-07-30 18:37:54 +02:00
|
|
|
*** WARNING for root users ***
|
2007-05-25 14:53:22 +02:00
|
|
|
|
2012-08-03 21:33:32 +02: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.
|