summaryrefslogtreecommitdiffstats
path: root/libs/NCSI
diff options
context:
space:
mode:
Diffstat (limited to 'libs/NCSI')
-rw-r--r--libs/NCSI/tests/CMakeLists.txt1
-rw-r--r--libs/NCSI/tests/tests.cpp1
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);
OpenPOWER on IntegriCloud