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
Milan Broz
943cc16020
Fix test to print exit line and use explicit key size.
2019-01-25 13:38:24 +01:00
Milan Broz
580f0f1a28
Add some FIPS mode workarounds.
...
We cannot (yet) use Argon2 in FIPS mode, hack scripts and library
to use PBKDF2 or skip tests and fix tests to run in FIPS mode.
2019-01-24 17:04:13 +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
6fc2e7c774
Skip pbkdf benchmark in align-test (test speedup).
2018-08-10 08:20:00 +02:00
Milan Broz
0270fc66a1
Fix align test.
...
Seems that the forced alignment value was never properly used...
2018-08-09 13:53:48 +02:00
Milan Broz
e53fe70668
Use only xz archives in tests.
...
Bzip2 is sometimesmissing and we use xz already.
Seems xz produces slightly larger archives (despite the best mode)
but it is not worth to keep bz2 here.
2018-08-06 13:48:54 +02:00
Milan Broz
cd2a1a169f
Skip test if scsi_debug is not available.
2018-07-07 10:24:35 +02:00
Ondrej Kozina
13796ee4c7
Add --with-default-luks-format configure time option.
...
Add option to override default LUKS format version (currently LUKS1).
2018-04-25 12:19:45 +02:00
Ondrej Kozina
d7686201dc
Grow fs images and alter tests accordingly.
2018-02-22 15:22:39 +01:00
Milan Broz
b80278c04f
Ignore device opt-io alignment if it is not multiple of minimal-io.
...
Some USB enclosures seems to report bogus topology info.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1513820
2017-11-21 15:39:36 +01:00
Milan Broz
d77bbe93c1
Use non-recursive automake.
...
This change also causes that now binaries and libraries are placed in
build root directory.
Now we can use subdir-objects for automake.
2017-10-12 11:48:17 +02:00
Milan Broz
a0880b64f2
Add magic exit code for automake to count skipped tests.
2017-08-23 16:54:04 +02:00
Milan Broz
576a2e5b86
Workaround for align test for scsi_debug kernel in-use issue.
2016-06-04 13:12:15 +02:00
Milan Broz
b5d1c9241c
Fix align test for new scsi_debug defaults.
2016-02-28 11:12:40 +01:00
Milan Broz
0dc245401f
Allow to enter empty password through stdin pipe.
...
Also always use empty passsword when using null cipher in tests.
2015-07-02 08:18:12 +02:00
Milan Broz
166d23a813
Fix tests for GNU grep syntax.
2014-07-27 16:31:46 +02:00
Milan Broz
004dc271a4
Fix wrong block size if used on 4k block fs through loop device.
...
Always use page size if running through loop device.
2013-12-08 16:09:25 +01:00
Milan Broz
20149281a4
Fix tests to work with pwquality compiled in.
2013-01-10 15:34:11 +01:00
Milan Broz
c2e12440d2
Add some offset/keyslot offset checks.
2012-08-30 14:08:34 +02:00
Milan Broz
490c17b3cd
Fix disk wipe (during keyslot removal) if used on 4k hw block device.
...
The "Gutmann" metod uses various offset, direct-io need
to even read device when working with buffer...
Fixes Issue 129.
2012-05-09 22:10:00 +02:00
Milan Broz
93da52f883
Rewrite key input handling, add limits.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@474 36d66b0a-2a48-0410-832c-cd162a569da5
2011-03-19 00:17:10 +00:00
Milan Broz
005855ce90
Allow tests to work with different default cipher/mode.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@441 36d66b0a-2a48-0410-832c-cd162a569da5
2011-03-10 22:12:03 +00:00
Milan Broz
2124cbf5ee
Fix error output redirection in tests.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@439 36d66b0a-2a48-0410-832c-cd162a569da5
2011-03-10 21:01:49 +00:00
Milan Broz
ef44e6e3d3
Use default data alignment to 1MiB.
...
If there is topology info, use default if topology is multiple of default,
otherwise use topology values.
See https://bugzilla.redhat.com/show_bug.cgi?id=621684 and issue 55.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@325 36d66b0a-2a48-0410-832c-cd162a569da5
2010-08-09 16:34:42 +00:00
Milan Broz
4ac7e5a4d2
Skip align test if kernel fails to load scsi_debug.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@215 36d66b0a-2a48-0410-832c-cd162a569da5
2010-05-01 16:04:04 +00:00
Milan Broz
19dc09131d
Rename align test (Anyone mentioned autoconfigure?). Add some minor changes, run it in make check.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@210 36d66b0a-2a48-0410-832c-cd162a569da5
2010-05-01 09:58:55 +00:00