dedicated test config objects list used now
This commit is contained in:
parent
d0b7a1ecf2
commit
7539dfffe3
tests/src/fsfw_tests/unit
@ -1,4 +1,5 @@
|
|||||||
#include "CatchFactory.h"
|
#include "CatchFactory.h"
|
||||||
|
#include "tests/TestsConfig.h"
|
||||||
#include "datapoollocal/LocalPoolOwnerBase.h"
|
#include "datapoollocal/LocalPoolOwnerBase.h"
|
||||||
#include "mocks/HkReceiverMock.h"
|
#include "mocks/HkReceiverMock.h"
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "LocalPoolOwnerBase.h"
|
#include "LocalPoolOwnerBase.h"
|
||||||
|
#include "tests/TestsConfig.h"
|
||||||
#include "fsfw_tests/unit/CatchDefinitions.h"
|
#include "fsfw_tests/unit/CatchDefinitions.h"
|
||||||
|
|
||||||
#include <fsfw/objectmanager/ObjectManager.h>
|
#include <fsfw/objectmanager/ObjectManager.h>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef FSFW_UNITTEST_TESTS_DATAPOOLLOCAL_LOCALPOOLOWNERBASE_H_
|
#ifndef FSFW_UNITTEST_TESTS_DATAPOOLLOCAL_LOCALPOOLOWNERBASE_H_
|
||||||
#define FSFW_UNITTEST_TESTS_DATAPOOLLOCAL_LOCALPOOLOWNERBASE_H_
|
#define FSFW_UNITTEST_TESTS_DATAPOOLLOCAL_LOCALPOOLOWNERBASE_H_
|
||||||
|
|
||||||
#include "objects/systemObjectList.h"
|
#include "tests/TestsConfig.h"
|
||||||
#include "../mocks/MessageQueueMockBase.h"
|
#include "../mocks/MessageQueueMockBase.h"
|
||||||
|
|
||||||
#include <fsfw/datapoollocal/HasLocalDataPoolIF.h>
|
#include <fsfw/datapoollocal/HasLocalDataPoolIF.h>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "LocalPoolOwnerBase.h"
|
#include "LocalPoolOwnerBase.h"
|
||||||
|
#include "tests/TestsConfig.h"
|
||||||
#include "fsfw_tests/unit/CatchDefinitions.h"
|
#include "fsfw_tests/unit/CatchDefinitions.h"
|
||||||
|
|
||||||
#include <fsfw/objectmanager/ObjectManager.h>
|
#include <fsfw/objectmanager/ObjectManager.h>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "LocalPoolOwnerBase.h"
|
#include "LocalPoolOwnerBase.h"
|
||||||
|
#include "tests/TestsConfig.h"
|
||||||
#include "fsfw_tests/unit/CatchDefinitions.h"
|
#include "fsfw_tests/unit/CatchDefinitions.h"
|
||||||
|
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#target_sources(${FSFW_TEST_TGT} PRIVATE
|
target_sources(${FSFW_TEST_TGT} PRIVATE
|
||||||
# ipc/MissionMessageTypes.cpp
|
ipc/MissionMessageTypes.cpp
|
||||||
# pollingsequence/PollingSequenceFactory.cpp
|
pollingsequence/PollingSequenceFactory.cpp
|
||||||
#)
|
)
|
||||||
|
|
||||||
# Add include paths for the executable
|
# Add include paths for the executable
|
||||||
#target_include_directories(${FSFW_TEST_TGT} PRIVATE
|
target_include_directories(${FSFW_TEST_TGT} PRIVATE
|
||||||
# ${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
#)
|
)
|
||||||
|
|
||||||
# These translation files are actually not that relevant for the tests. However, the FSFW tests
|
# These translation files are actually not that relevant for the tests. However, the FSFW tests
|
||||||
# compile against a user-configured variant of the FSFW, which might be configured to include
|
# compile against a user-configured variant of the FSFW, which might be configured to include
|
||||||
@ -14,15 +14,15 @@
|
|||||||
# so the tests compile in any case.
|
# so the tests compile in any case.
|
||||||
|
|
||||||
# If a special translation file for object IDs exists, compile it.
|
# If a special translation file for object IDs exists, compile it.
|
||||||
#if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
|
||||||
# target_sources(${FSFW_TEST_TGT} PRIVATE
|
target_sources(${FSFW_TEST_TGT} PRIVATE
|
||||||
# objects/translateObjects.cpp
|
objects/translateObjects.cpp
|
||||||
# )
|
)
|
||||||
#endif()
|
endif()
|
||||||
|
|
||||||
# If a special translation file for events exists, compile it.
|
# If a special translation file for events exists, compile it.
|
||||||
#if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
|
||||||
# target_sources(${FSFW_TEST_TGT} PRIVATE
|
target_sources(${FSFW_TEST_TGT} PRIVATE
|
||||||
# events/translateEvents.cpp
|
events/translateEvents.cpp
|
||||||
# )
|
)
|
||||||
#endif()
|
endif()
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
#include "objects/systemObjectList.h"
|
#include "objects/testObjectList.h"
|
||||||
#include "events/subsystemIdRanges.h"
|
#include "events/subsystemIdRanges.h"
|
||||||
#include "returnvalues/classIds.h"
|
#include "returnvalues/classIds.h"
|
||||||
|
|
||||||
|
@ -11,17 +11,17 @@ namespace objects {
|
|||||||
FSFW_CONFIG_RESERVED_START = PUS_SERVICE_1_VERIFICATION,
|
FSFW_CONFIG_RESERVED_START = PUS_SERVICE_1_VERIFICATION,
|
||||||
FSFW_CONFIG_RESERVED_END = TM_STORE,
|
FSFW_CONFIG_RESERVED_END = TM_STORE,
|
||||||
|
|
||||||
UDP_BRIDGE = 15,
|
UDP_BRIDGE = FSFW_OBJECTS_END,
|
||||||
UDP_POLLING_TASK = 16,
|
UDP_POLLING_TASK = FSFW_OBJECTS_END + 1,
|
||||||
|
|
||||||
TEST_ECHO_COM_IF = 20,
|
TEST_ECHO_COM_IF = FSFW_OBJECTS_END + 2,
|
||||||
TEST_DEVICE = 21,
|
TEST_DEVICE = FSFW_OBJECTS_END + 3,
|
||||||
|
|
||||||
HK_RECEIVER_MOCK = 22,
|
HK_RECEIVER_MOCK = FSFW_OBJECTS_END + 4,
|
||||||
TEST_LOCAL_POOL_OWNER_BASE = 25,
|
TEST_LOCAL_POOL_OWNER_BASE = FSFW_OBJECTS_END + 5,
|
||||||
|
|
||||||
SHARED_SET_ID = 26
|
|
||||||
|
|
||||||
|
SHARED_SET_ID = FSFW_OBJECTS_END + 6,
|
||||||
|
FSFW_END_TEST_IDS = FSFW_OBJECTS_END + 7
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user