From ab1cf60643e3e828d1e73810f189dc2cbe481869 Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Sat, 3 Oct 2026 12:28:55 +0000 Subject: [PATCH] Add TetraIF targets to GROUP6 and create compilation tests - Add CoPrtCnv, PrtCnvLib, PrtCnv to GROUP6_TARGETS in new_docker_build.sh - Clean up redundant find_package(Qt6) in CoPrtCnv/CMakeLists.txt - Add CTest compilation tests for CoPrtCnv, LogView, and PrtCnv headers - Tests verify Qt6/C++17 compatibility of TetraIF module headers Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../TetraIF/CoPrtCnv/CMakeLists.txt | 1 - .../qt6-migrated-legatus/new_docker_build.sh | 3 ++ .../tests/test_tetraif_coprtcnv.cpp | 21 +++++++++++ .../tests/test_tetraif_logview.cpp | 35 +++++++++++++++++++ .../tests/test_tetraif_prtcnv.cpp | 33 +++++++++++++++++ 5 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 qt6-after/qt6-migrated-legatus/tests/test_tetraif_coprtcnv.cpp create mode 100644 qt6-after/qt6-migrated-legatus/tests/test_tetraif_logview.cpp create mode 100644 qt6-after/qt6-migrated-legatus/tests/test_tetraif_prtcnv.cpp diff --git a/qt6-after/qt6-migrated-legatus/TetraIF/CoPrtCnv/CMakeLists.txt b/qt6-after/qt6-migrated-legatus/TetraIF/CoPrtCnv/CMakeLists.txt index e2ce6a765..60762794e 100644 --- a/qt6-after/qt6-migrated-legatus/TetraIF/CoPrtCnv/CMakeLists.txt +++ b/qt6-after/qt6-migrated-legatus/TetraIF/CoPrtCnv/CMakeLists.txt @@ -23,7 +23,6 @@ find_package(Qt6 COMPONENTS Core QUIET) if (Qt6_FOUND) set(_QT_CORE_TARGET Qt6::Core) else() - find_package(Qt6 COMPONENTS Core QUIET) set(_QT_CORE_TARGET Qt6::Core) endif() NGL_TARGET_LINK_LIBRARIES(CoPrtCnv diff --git a/qt6-after/qt6-migrated-legatus/new_docker_build.sh b/qt6-after/qt6-migrated-legatus/new_docker_build.sh index a4a12eefc..04b87622a 100755 --- a/qt6-after/qt6-migrated-legatus/new_docker_build.sh +++ b/qt6-after/qt6-migrated-legatus/new_docker_build.sh @@ -959,6 +959,9 @@ GROUP6_TARGETS=( LicenceEditor localDomainFinder LogViewer + CoPrtCnv + PrtCnvLib + PrtCnv ) # Group 7: LTS Tools A,B,C,E,I directories (Qt6 migration targets) diff --git a/qt6-after/qt6-migrated-legatus/tests/test_tetraif_coprtcnv.cpp b/qt6-after/qt6-migrated-legatus/tests/test_tetraif_coprtcnv.cpp new file mode 100644 index 000000000..451d3b5e8 --- /dev/null +++ b/qt6-after/qt6-migrated-legatus/tests/test_tetraif_coprtcnv.cpp @@ -0,0 +1,21 @@ +/** + * @file test_tetraif_coprtcnv.cpp + * @brief Compilation test for TetraIF/CoPrtCnv headers + * + * This test verifies that the migrated CoPrtCnv headers compile correctly with Qt6/C++17. + */ + +#include "TetraIF/CoPrtCnv/CoPrtCnvLogHeader.hpp" +#include "TetraIF/CoPrtCnv/CoPrtCnvRadioTelegram.hpp" +#include "TetraIF/CoPrtCnv/CoPrtCnvHexDumpHelper.hpp" +#include "TetraIF/CoPrtCnv/CoPrtCnvInjectionHeader.hpp" +#include "TetraIF/CoPrtCnv/CoPrtCnvCentralTelegram.hpp" +#include "TetraIF/CoPrtCnv/CoPrtCnvTelegramConverter.hpp" + +#include + +TEST(TetraIF_CoPrtCnv, HeadersCompile) +{ + // This test verifies that the CoPrtCnv headers compile without errors + EXPECT_TRUE(true); +} \ No newline at end of file diff --git a/qt6-after/qt6-migrated-legatus/tests/test_tetraif_logview.cpp b/qt6-after/qt6-migrated-legatus/tests/test_tetraif_logview.cpp new file mode 100644 index 000000000..f6df96773 --- /dev/null +++ b/qt6-after/qt6-migrated-legatus/tests/test_tetraif_logview.cpp @@ -0,0 +1,35 @@ +/** + * @file test_tetraif_logview.cpp + * @brief Compilation test for TetraIF/LogView headers + * + * This test verifies that the migrated LogView headers compile correctly with Qt6/C++17. + */ + +#include "TetraIF/LogView/LogViewTableWidget.hpp" +#include "TetraIF/LogView/LogViewXdrValue.hpp" +#include "TetraIF/LogView/LogViewTelegramEditModel.hpp" +#include "TetraIF/LogView/LogViewValueEdit.hpp" +#include "TetraIF/LogView/LogViewTextEdit.hpp" +#include "TetraIF/LogView/LogViewDateTimeEdit.hpp" +#include "TetraIF/LogView/LogViewModels.hpp" +#include "TetraIF/LogView/LogViewField.hpp" +#include "TetraIF/LogView/LogViewTelegramDialog.hpp" +#include "TetraIF/LogView/LogViewXdrStruct.hpp" +#include "TetraIF/LogView/LogViewTelegramSelectionDialog.hpp" +#include "TetraIF/LogView/LogViewXdrStandardType.hpp" +#include "TetraIF/LogView/LogViewWidget.hpp" +#include "TetraIF/LogView/LogViewBooleanEdit.hpp" +#include "TetraIF/LogView/LogViewGui.hpp" +#include "TetraIF/LogView/LogViewXdrParser.hpp" +#include "TetraIF/LogView/LogViewTabWidget.hpp" +#include "TetraIF/LogView/LogViewTelegram.hpp" +#include "TetraIF/LogView/LogViewOptionDialog.hpp" +#include "TetraIF/LogView/LogViewXdrType.hpp" + +#include + +TEST(TetraIF_LogView, HeadersCompile) +{ + // This test verifies that the LogView headers compile without errors + EXPECT_TRUE(true); +} \ No newline at end of file diff --git a/qt6-after/qt6-migrated-legatus/tests/test_tetraif_prtcnv.cpp b/qt6-after/qt6-migrated-legatus/tests/test_tetraif_prtcnv.cpp new file mode 100644 index 000000000..68e66c7e6 --- /dev/null +++ b/qt6-after/qt6-migrated-legatus/tests/test_tetraif_prtcnv.cpp @@ -0,0 +1,33 @@ +/** + * @file test_tetraif_prtcnv.cpp + * @brief Compilation test for TetraIF/PrtCnv headers + * + * This test verifies that the migrated PrtCnv headers compile correctly with Qt6/C++17. + */ + +#include "TetraIF/PrtCnv/PrtCnvStoredTelegram.hpp" +#include "TetraIF/PrtCnv/PrtCnvInjectionSocket.hpp" +#include "TetraIF/PrtCnv/PrtCnvMember.hpp" +#include "TetraIF/PrtCnv/PrtCnvThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvBroadcastMgr.hpp" +#include "TetraIF/PrtCnv/PrtCnvApplication.hpp" +#include "TetraIF/PrtCnv/PrtCnvRadioTrafficThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvInjectionThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvSocketThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvThreadStarter.hpp" +#include "TetraIF/PrtCnv/IAppComponent.hpp" +#include "TetraIF/PrtCnv/PrtCnvDbThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvTelegramLogThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvRadioThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvCentralThread.hpp" +#include "TetraIF/PrtCnv/PrtCnvStoredRadioTelegram.hpp" +#include "TetraIF/PrtCnv/PrtCnvStoredCentralTelegram.hpp" +#include "TetraIF/PrtCnv/AppComponent.hpp" + +#include + +TEST(TetraIF_PrtCnv, HeadersCompile) +{ + // This test verifies that the PrtCnv headers compile without errors + EXPECT_TRUE(true); +} \ No newline at end of file