Ondrej Kozina
53b22cc32e
Fix deferred remove test failure on non-udev systems.
...
Deferred remove non-udev enabled libdevmapper removes
device mapper symlinks immediately. We have to check
device size from sysfs attributes.
2021-08-25 13:39:03 +02:00
Milan Broz
530bcfd4fa
Allow CRYPT_BUSY also a a valid check for active device.
...
In ideal system nothing should touch test devices, but to make tests
more robust, we should expect that something is still scanning devices
after activation. So replace all checks for CRYPT_ACTIVE to allow
also CRYPT_BUSY.
(Fixes some problems seen in #633 )
2021-03-25 11:11:06 +01:00
Milan Broz
1ff2b85252
Rename SECTOR_SIZE in tests to avoid conflict with library definition.
2021-02-11 11:12:11 +00:00
Milan Broz
d1d9dd8e20
Update Copyright year.
2021-01-25 22:00:25 +01:00
Milan Broz
080566a1fd
Update copyright year.
2020-01-03 13:04:55 +01:00
Milan Broz
5e03f8c725
Always close context before failing API test.
...
Some devices could be still open delaying removal in cleanup.
2019-07-30 13:14:12 +02:00
Milan Broz
2e3f764272
Fix api-test-2 to properly detect missing keyring in kernel.
...
Also properly cleanup after some failures.
2019-02-12 14:49:21 +01:00
Ondrej Kozina
0cac4a4e0c
Make api test run with any defalt LUKS2 header size.
2019-02-06 11:48:47 +01:00
Milan Broz
a6f5ce8c7b
Update copyright year.
...
And unify name copyright format.
2019-01-25 09:45:57 +01:00
Ondrej Kozina
545b347ca5
Add api test for CRYPT_ACTIVATE_REFRESH flag.
2019-01-01 21:42:46 +01:00
Milan Broz
1fe014dbae
Update copyright year.
2018-01-20 17:55:21 +01:00
Milan Broz
892b80ffa4
Do not depend in test on loop code from library sources.
...
This patch duplicates part of the code because following
switch to non-recursive automake is not easily fixable without this change.
(Automake cannot use top_srcdir anymore in this context.)
2017-10-12 11:46:26 +02:00
Milan Broz
c6d4ebd80c
Add libLUKS2 tests.
2017-09-24 19:50:17 +02:00
Milan Broz
e7de19fe1d
Split utils from API test.
2017-09-24 19:49:51 +02:00