Deletes the two stub-header trees (249 files) that shadowed the real
rtiddsgen-generated DDS headers, and removes every reference to them.
CMake (15 include-path entries):
root CMakeLists.txt include_directories(.../forward-declarations);
NGL_TARGET_INCLUDE_DIRECTORIES entries in 7 service CMakeLists
(ServiceManagement, SoundManagement, SituationMap, ScreenRecording,
SituationReplayManagement, SituationReplay, ServiceMonitor)
Source includes that resolved to the root-level stubs (only 2, repointed to the
module-prefixed generated headers the rest of the tree already uses):
Lts/Services/AreaEffectSimulation/object_charge_effect.h
<aes_dtc.h> -> <AreaEffectSimulation/aes_dtc.h>
Lts/Proxies/TrainingAreaBaseOC/websocket_handler.h
<taboc_dtc.h> -> <TrainingAreaBaseOC/taboc_dtc.h>
(generic_dtc_impl.h needs no change: its quote-include "generic_dtc.h"
resolves to the real Lts/DDS/DTC/generic_dtc.h in the same directory)
Tests:
tests/test_migration_stubs.cpp: remove the redundant root-level stub test
(AesDtcCompiles) - the module-prefixed AreaEffectSimulationDtcCompiles test
already exercises the same AreaEffectSimulation::Interface header.
tests/test_skl_dtc.cpp: delete (removed-module compile test, already filtered
out of the build) and remove its now-obsolete CMake list(FILTER) exclusion.
Validation: full rebuild (build4, make -j4 -k) with the removal - 0 new compile
errors vs the pre-existing base-state baseline (77 unique real-error signatures
identical to baseline; all 15 'No such file' headers pre-existing).
219 lines
4.6 KiB
C++
219 lines
4.6 KiB
C++
/**
|
|
* @file test_migration_stubs.cpp
|
|
* @brief Compilation tests for migrated stub headers (DTCs and enums)
|
|
*
|
|
* This test file verifies that all migrated stub headers compile correctly
|
|
* with Qt6 and C++23. These are forward declaration stubs that would normally
|
|
* be generated by DDS DTC tooling.
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
#include <QtCore/QString>
|
|
|
|
// Test that the test framework is working
|
|
TEST(MigrationStubs, TestFrameworkWorks)
|
|
{
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// Test that basic Qt6 types are available
|
|
TEST(MigrationStubs, Qt6TypesAvailable)
|
|
{
|
|
QString test = QStringLiteral("Qt6 migration");
|
|
EXPECT_FALSE(test.isEmpty());
|
|
}
|
|
|
|
// DTC Stub Headers - these are forward declarations only
|
|
// Each include verifies the header compiles without errors
|
|
|
|
// AlarmManagement
|
|
#include "AlarmManagement/alm_dtc.h"
|
|
|
|
TEST(MigrationStubs, AlarmManagementDtcCompiles)
|
|
{
|
|
// Forward declaration only - verify namespace exists
|
|
using namespace AlarmManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// AreaEffectSimulation
|
|
#include "AreaEffectSimulation/aes_dtc.h"
|
|
|
|
TEST(MigrationStubs, AreaEffectSimulationDtcCompiles)
|
|
{
|
|
using namespace AreaEffectSimulation::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// AssetManagement
|
|
#include "AssetManagement/asm_dtc.h"
|
|
|
|
TEST(MigrationStubs, AssetManagementDtcCompiles)
|
|
{
|
|
using namespace AssetManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// AudioVideoManagement
|
|
#include "AudioVideoManagement/avm_dtc.h"
|
|
|
|
TEST(MigrationStubs, AudioVideoManagementDtcCompiles)
|
|
{
|
|
using namespace AudioVideoManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// Buildings
|
|
#include "Buildings/bld_dtc.h"
|
|
|
|
TEST(MigrationStubs, BuildingsDtcCompiles)
|
|
{
|
|
using namespace Buildings::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// CentralEffectSimulation
|
|
#include "CentralEffectSimulation/ces_dtc.h"
|
|
|
|
TEST(MigrationStubs, CentralEffectSimulationDtcCompiles)
|
|
{
|
|
using namespace CentralEffectSimulation::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// CodificationManagement
|
|
#include "CodificationManagement/cod_dtc.h"
|
|
|
|
TEST(MigrationStubs, CodificationManagementDtcCompiles)
|
|
{
|
|
using namespace CodificationManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// ComponentMonitor
|
|
#include "ComponentMonitor/cmo_dtc.h"
|
|
|
|
TEST(MigrationStubs, ComponentMonitorDtcCompiles)
|
|
{
|
|
using namespace ComponentMonitor::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// Core
|
|
#include "Core/core_dtc.h"
|
|
|
|
TEST(MigrationStubs, CoreDtcCompiles)
|
|
{
|
|
using namespace Core::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// DDS Core
|
|
#include "Core/core_dtc.h"
|
|
|
|
TEST(MigrationStubs, DDSCoreDtcCompiles)
|
|
{
|
|
using namespace Core::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// DDS DTC
|
|
#include "DDS/DTC/generic_dtc.h"
|
|
|
|
TEST(MigrationStubs, DDSDtcCompiles)
|
|
{
|
|
using namespace DTC;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// EffectShowClient
|
|
#include "EffectShowClient/esc_dtc.h"
|
|
|
|
TEST(MigrationStubs, EffectShowClientDtcCompiles)
|
|
{
|
|
using namespace EffectShowClient::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// EffectShowManagement
|
|
#include "EffectShowManagement/esm_dtc.h"
|
|
|
|
TEST(MigrationStubs, EffectShowManagementDtcCompiles)
|
|
{
|
|
using namespace EffectShowManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// Evaluations
|
|
#include "Evaluations/evl_dtc.h"
|
|
|
|
TEST(MigrationStubs, EvaluationsDtcCompiles)
|
|
{
|
|
using namespace Evaluations::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// ExerciseEventManagement
|
|
#include "ExerciseEventManagement/eem_dtc.h"
|
|
|
|
TEST(MigrationStubs, ExerciseEventManagementDtcCompiles)
|
|
{
|
|
using namespace ExerciseEventManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// ExerciseManagement
|
|
#include "ExerciseManagement/exm_dtc.h"
|
|
|
|
TEST(MigrationStubs, ExerciseManagementDtcCompiles)
|
|
{
|
|
using namespace ExerciseManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// FileManagement
|
|
#include "FileManagement/flm_dtc.h"
|
|
|
|
TEST(MigrationStubs, FileManagementDtcCompiles)
|
|
{
|
|
using namespace FileManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// GuezIedManagement
|
|
#include "GuezIedManagement/gim_dtc.h"
|
|
|
|
TEST(MigrationStubs, GuezIedManagementDtcCompiles)
|
|
{
|
|
using namespace GuezIedManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// GuezNasat
|
|
#include "GuezNasat/gna_dtc.h"
|
|
|
|
TEST(MigrationStubs, GuezNasatDtcCompiles)
|
|
{
|
|
using namespace GuezNasat::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// InfrastructureManagement
|
|
#include "InfrastructureManagement/ism_dtc.h"
|
|
|
|
TEST(MigrationStubs, InfrastructureManagementDtcCompiles)
|
|
{
|
|
using namespace InfrastructureManagement::Interface;
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
// Generic DTC (already included via DDS/DTC/generic_dtc.h)
|
|
// Classes are in DTC namespace, not Generic
|
|
|
|
TEST(MigrationStubs, GenericDtcCompiles)
|
|
{
|
|
using namespace DTC;
|
|
// Verify GenericDtc template is accessible
|
|
EXPECT_TRUE(true);
|
|
}
|