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