Milan Broz
8364178b38
Update copyright year.
2025-01-15 23:09:36 +01:00
Milan Broz
661f57def4
Use SPDX license identifiers.
...
This patch switches code to SPDX one-line license identifiers according to
https://spdx.dev/learn/handling-license-info/
and replacing long license text headers.
I used C++ format on the first line in style
// SPDX-License-Identifier: <id>
except exported libcryptsetup.h, when only C comments are used.
The only additional changes are:
- switch backend utf8.c from LGPL2+ to LGPL2.1+ (as in systemd)
- add some additional formatting lines.
2024-06-03 16:38:15 +00:00
Milan Broz
bd0ef58b3a
Update copyright notice to include 2024 year.
2024-01-23 16:10:44 +01:00
Ondrej Kozina
adc83f6dca
tests: add helper for creating arbitrary linear mapping.
2024-01-05 14:22:07 +01:00
Milan Broz
76c0a81318
tests: reserve one byte for trailing zero in global log buffer
2023-03-09 16:28:36 +01:00
Milan Broz
72f799b393
Update Copyright year.
2023-02-09 17:11:18 +01:00
Ondrej Kozina
4cd8d1efdb
Fix api test on kernels with capi format support.
2023-01-19 11:50:48 +01:00
Milan Broz
d260ca6680
Fix api-test with older kernel.
2022-10-13 16:08:08 +02:00
Milan Broz
1745fd5aea
Fix missing va_end macro in test error path.
2022-09-19 12:46:42 +00:00
Ondrej Kozina
0009d9532e
Extend LUKS2 decryption with datashift API tests.
2022-06-30 11:21:38 +02:00
Milan Broz
a25d10407d
Fix some scan build warnings for api-test-2.
2022-04-28 12:56:59 +00:00
Milan Broz
0085985419
Fix gcc warnings in tests.
2022-02-24 20:28:29 +01:00
Milan Broz
12c35da768
Check all snprintf calls for returning values for tests.
2022-02-24 20:28:25 +01:00
Milan Broz
ab975bc1c4
Update copyright year.
...
And unify format in several places.
2022-01-29 10:43:02 +01:00
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
90bba399ab
Fix LOOP_CONFIGURE incompatibility is some kernels.
...
Kernels with 32bit userspace can return ENOTTY,
we should use fallback to old code in this case.
For more info see
583990d25b
2021-07-29 10:32:13 +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
d703301fe8
Mark or remove unused parameters.
...
Mark unused parameters with proper attribute where it is a part
of API or some internal logic.
And remove other unused parameters completely.
2021-02-11 11:12:11 +00:00
Milan Broz
85f7ee59f8
Rename local test keyring check to avoid confusion with intenal function.
2021-02-11 11:12:11 +00:00
Milan Broz
d1d9dd8e20
Update Copyright year.
2021-01-25 22:00:25 +01:00
Sinan Kaya
c65cd4eb74
tests: refresh loop code to the library
...
Refresh loopback device loading code to support LOOP_CONFIGURE ioctl.
Signed-off-by: Sinan Kaya <sinan.kaya@microsoft.com >
2020-09-21 10:55:10 -04:00
Milan Broz
0b9893c640
Print a warning if API test generates too long log.
2020-08-26 13:16:21 +02:00
Milan Broz
080566a1fd
Update copyright year.
2020-01-03 13:04:55 +01:00
Milan Broz
2ebd19c9bc
Fix another EOL in api-test debug log.
2019-06-20 14:28:32 +02:00
Milan Broz
dce7a1e2aa
Fix gcc warning in tests.
2019-02-24 12:35:54 +01: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
Milan Broz
a6f5ce8c7b
Update copyright year.
...
And unify name copyright format.
2019-01-25 09:45:57 +01:00
Milan Broz
51dd2762a9
Add --debug-json switch and log level.
...
The JSON structures should not be printed by default to debug log.
This flag introduces new debug level that prints JSON structures
and keeps default debug output separate.
2019-01-10 14:52:49 +01:00
Ondrej Kozina
545b347ca5
Add api test for CRYPT_ACTIVATE_REFRESH flag.
2019-01-01 21:42:46 +01:00
Milan Broz
9cbd36163c
Fix various gcc compiler warnings in tests.
2018-12-03 13:47:43 +01:00
Milan Broz
493e8580d6
Log all debug messages through log callback.
...
This cahnge allow to redirect all output of library
to a log processor.
2018-11-07 10:17:51 +01:00
Milan Broz
f1d5b94762
Run API tests without verbose flag by default.
...
And rename some tests.
2018-08-10 12:36:15 +02:00
Milan Broz
1fe014dbae
Update copyright year.
2018-01-20 17:55:21 +01:00
Ondrej Kozina
2f890dea18
Update tests for dm-crypt kernel key bugfix.
...
cryptsetup now requires dm-crypt v1.18.1 or higher
to use kernel keyring service for passing VKs.
Also, relevant API functions fail if CRYPT_ACTIVATE_KEYRING_KEY
is set, but library is not allowed to use kernel keyring for
VK.
2018-01-18 14:24:24 +01:00
Milan Broz
6e3622e0f1
Fix some warning and leaks in api test code.
2017-10-28 11:59:06 +02:00
Milan Broz
4a4faa5d46
Fix warning for major() macro.
2017-10-12 12:29:41 +02: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
e7de19fe1d
Split utils from API test.
2017-09-24 19:49:51 +02:00