Commit 8b3c040
committed
luks: make cryptsetup optional in test suite
The LUKS test directory is included unconditionally by the parent
meson.build (only gated by cross-compilation), but all LUKS tests
require the cryptsetup binary. When cryptsetup is unavailable (e.g.,
on macOS/Darwin or minimal build environments), the build fails at
configure time.
Make cryptsetup optional and use subdir_done() to skip the entire
test directory when it is not found. This also avoids the
luksmeta_data.get('OLD_CRYPTSETUP') error that occurs when
libcryptsetup was not detected.
Move the jq find_program() call after the cryptsetup guard since
it is only used within LUKS tests.1 parent 1511844 commit 8b3c040
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
0 commit comments