diff options
author | Evan Lojewski <github@meklort.com> | 2020-09-13 11:08:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 11:08:59 -0600 |
commit | 0497a6be5647bc90c02b345bc8a1ad25e8bed4a5 (patch) | |
tree | a9b81f8cc4e827da9ed89d4e70d0fcef40458a3e /libs/NCSI | |
parent | 16706923ed4f94803f4a5687752a64d8495410d9 (diff) | |
download | bcm5719-ortega-0497a6be5647bc90c02b345bc8a1ad25e8bed4a5.tar.gz bcm5719-ortega-0497a6be5647bc90c02b345bc8a1ad25e8bed4a5.zip |
tests: Enable automated testing. (#105)
Diffstat (limited to 'libs/NCSI')
-rw-r--r-- | libs/NCSI/tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | libs/NCSI/tests/tests.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/NCSI/tests/CMakeLists.txt b/libs/NCSI/tests/CMakeLists.txt index 56d488d..17413f9 100644 --- a/libs/NCSI/tests/CMakeLists.txt +++ b/libs/NCSI/tests/CMakeLists.txt @@ -48,3 +48,4 @@ set(SOURCES valid_commands.c tests.cpp) simulator_add_executable(ncsi-tests ${SOURCES}) target_link_libraries(ncsi-tests NCSI simulator gtest gtest_main) +gtest_discover_tests(ncsi-tests) diff --git a/libs/NCSI/tests/tests.cpp b/libs/NCSI/tests/tests.cpp index 7aa2a6f..1bae4fc 100644 --- a/libs/NCSI/tests/tests.cpp +++ b/libs/NCSI/tests/tests.cpp @@ -259,6 +259,7 @@ namespace TEST(Packet, SelectPackage) { + NCSI_usePort(Network_getPort(0)); APE_PERI.BmcToNcRxStatus.r32.installReadCallback(read_rx_status, NULL); APE_PERI.BmcToNcReadBuffer.r32.installReadCallback(read_packet, NULL); APE_PERI.BmcToNcTxStatus.r32.installReadCallback(read_tx_status, NULL); |