| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
if want_ukify and want_tests != 'false' |
| 4 |
have_pytest_flakes = pymod.find_installation( |
| 5 |
'python3', |
| 6 |
required : false, |
| 7 |
modules : ['pytest_flakes'], |
| 8 |
).found() |
| 9 |
|
| 10 |
args = ['-v'] |
| 11 |
if have_pytest_flakes |
| 12 |
args += ['--flakes'] |
| 13 |
endif |
| 14 |
|
| 15 |
efi_addon_for_test = '' |
| 16 |
if not meson.is_cross_build() and efi_addon.length() > 0 |
| 17 |
efi_addon_for_test = efi_addon[0].full_path() |
| 18 |
endif |
| 19 |
|
| 20 |
test('test-ukify', |
| 21 |
files('test_ukify.py'), |
| 22 |
args: args, |
| 23 |
env : test_env + {'EFI_ADDON' : efi_addon_for_test}, |
| 24 |
timeout : 120, |
| 25 |
suite : 'ukify', |
| 26 |
depends : efi_addon) |
| 27 |
endif |