daniel.zatovic
429afe8fc3
Add valgrind support to more tests.
2022-08-10 07:45:13 +00:00
Ondrej Kozina
c6ed1becd7
Fix bogus conditions in tests.
...
Do not test for dm-crypt versions not supported
by upstream kernels.
2022-07-28 17:18:57 +02:00
Milan Broz
648a85ed3a
Unify use of tabulators in tests.
2022-07-16 19:14:31 +00:00
Ondrej Kozina
bef46c950d
Properly detect optimal encryption sector size.
...
Move code setting data device during format so that
we can properly detect optimal encryption sector size
for data device instead of metadata device (header).
Fixes : #708 .
2022-02-09 15:43:25 +01:00
Alyssa Ross
c0cef43a4e
Skip cryptsetup tests when cryptsetup is disabled
...
If configured with --disable-cryptsetup (e.g. if only veritysetup is
required), these tests won't be able to run cryptsetup, so they need
to be skipped.
2022-02-02 16:51:49 +00:00
Milan Broz
089edb74b4
Fix return code for skipped align tests.
2021-07-29 20:19:45 +02:00
Milan Broz
8c60cf8645
Silence also scsi_debug module load in tests.
2021-07-29 17:41:25 +02:00
Milan Broz
cab332c367
Silence all modprobe/rmmod calls in tests.
...
On systems where are modules compiled-in or missing this produces nois,
test will be skipped later anyway.
2021-07-29 16:20:00 +02:00
Milan Broz
c403f73ad0
Skip tests id scsi_debug is compiled-in or in use.
...
We need standalone scsi_debug module for some tests.
2021-07-28 23:20:45 +02:00
Milan Broz
57eab17262
Use tabs in tests scripts consistently.
...
Really...
2020-12-02 13:04:44 +01:00
Milan Broz
4cf663a661
Ignore optimal-io if not aligned to minimal page size
...
This values is bogus on some systems and causes wrong alignment
for data area. Just ignore it there.
Fixes : #585 .
2020-08-26 13:17:26 +02:00
Milan Broz
4a8a1f2dde
Do not use /tmp for test images.
...
Keep all temporary files in local test directory.
2020-08-09 11:24:53 +02:00
Milan Broz
ff364347cf
Add FAIL backtrace to all bash tests.
2019-06-20 15:11:56 +02:00
Milan Broz
456ab38caa
Allow to set CRYPTSETUP_PATH in tests for system installed cryptsetup tools.
...
Run: make check CRYPTSETUP_PATH=/sbin
2019-03-08 08:16:45 +01:00
Ondrej Kozina
57670eeeb7
Detect LUKS2 default alignmnet in align tests.
2019-02-07 18:40:48 +01:00
Milan Broz
348d460ab7
Workarounds for larger LUKS2 header for tests.
2019-02-07 18:39:50 +01:00
Milan Broz
82a1f33260
Silence new warning in tests if run on older kernel.
2019-01-15 15:15:25 +01:00
Milan Broz
dfe61cbe9c
Fix sector-size tests for older kernels.
2018-11-24 20:10:03 +01:00
Milan Broz
18c9210342
Check for device size and sector size misalignment.
...
Kernel prevents activation of device that is not aligned
to requested sector size.
Add early check to plain and LUKS2 formats to disallow
creation of such a device.
(Activation will fail in kernel later anyway.)
Fixes #390 .
2018-11-24 18:53:46 +01:00
Ondrej Kozina
61305a50c1
Add delay=0 parameter to scsi_debug in all tests.
...
Speed up tests significantly.
2018-10-11 16:21:36 +02:00
Milan Broz
3f73d448f3
Retry temporary device removal in align test.
2018-09-10 15:53:27 +02:00
Ondrej Kozina
5a3e4abf71
Add basic LUKS2 align test.
2018-08-10 08:19:38 +02:00