Zane Shelley | 61465db | 2020-10-30 14:53:11 -0500 | [diff] [blame] | 1 | # Source files specific to end2end test. |
| 2 | end2end_src = [ |
| 3 | 'bp_handler.cpp', |
| 4 | 'logging.cpp', |
| 5 | 'main.cpp', |
| 6 | 'ti_handler.cpp', |
| 7 | ] |
| 8 | |
| 9 | # Additional source files needed for test. |
| 10 | additional_src = [ |
| 11 | '../../cli.cpp', |
| 12 | ] |
| 13 | |
| 14 | # Link with the analyzer and attention handler static libraries. |
| 15 | end2end_libs = [ |
| 16 | analyzer, |
| 17 | attn, |
| 18 | ] |
| 19 | |
Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 20 | # create openpower-hw-diags executable for local testing |
Ben Tyner | b1ebfcb | 2020-05-08 18:52:48 -0500 | [diff] [blame] | 21 | end2end = executable('openpower-hw-diags-test', |
Zane Shelley | 61465db | 2020-10-30 14:53:11 -0500 | [diff] [blame] | 22 | end2end_src, additional_src, |
| 23 | link_with : end2end_libs, |
Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 24 | include_directories : incdir, |
Zane Shelley | 0c44c2f | 2020-06-05 17:14:31 -0500 | [diff] [blame] | 25 | cpp_args : test_arg, |
Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 26 | install : false) |
Ben Tyner | b859d79 | 2020-05-06 21:29:47 -0500 | [diff] [blame] | 27 | |
Zane Shelley | 61465db | 2020-10-30 14:53:11 -0500 | [diff] [blame] | 28 | test('openpower-hw-diags-test', end2end) |