Lei YU | f357b5a | 2020-02-27 11:52:39 +0800 | [diff] [blame] | 1 | tests = [ |
| 2 | 'libpldm_base_test', |
| 3 | 'libpldm_platform_test', |
| 4 | 'libpldm_bios_test', |
| 5 | 'libpldm_bios_table_test', |
| 6 | 'libpldm_fru_test', |
| 7 | 'libpldm_utils_test', |
gokulsanker | 138ceba | 2021-04-05 13:25:25 +0530 | [diff] [blame] | 8 | 'libpldm_pdr_test', |
| 9 | 'libpldm_firmware_update_test' |
Lei YU | f357b5a | 2020-02-27 11:52:39 +0800 | [diff] [blame] | 10 | ] |
| 11 | |
| 12 | if get_option('oem-ibm').enabled() |
| 13 | tests += [ |
| 14 | '../../oem/ibm/test/libpldm_fileio_test', |
George Liu | 9008d28 | 2020-03-12 11:20:35 +0800 | [diff] [blame] | 15 | '../../oem/ibm/test/libpldm_host_test', |
Lei YU | f357b5a | 2020-02-27 11:52:39 +0800 | [diff] [blame] | 16 | ] |
| 17 | endif |
| 18 | |
| 19 | foreach t : tests |
| 20 | test(t, executable(t.underscorify(), t + '.cpp', |
| 21 | implicit_include_directories: false, |
| 22 | link_args: dynamic_linker, |
| 23 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 24 | dependencies: [ |
Patrick Williams | 6f4479c | 2021-04-16 21:39:44 -0500 | [diff] [blame] | 25 | libpldm_dep, |
Lei YU | f357b5a | 2020-02-27 11:52:39 +0800 | [diff] [blame] | 26 | gtest, |
| 27 | gmock]), |
| 28 | workdir: meson.current_source_dir()) |
| 29 | endforeach |
| 30 | |