From d46f463f974567f5d961877281c93a5a05fec70a Mon Sep 17 00:00:00 2001 From: Fred Hornsey Date: Thu, 6 Jun 2024 18:01:39 -0500 Subject: [PATCH] TypeSupportPlugin Should Use ConsolidatedMessenger --- tests/DCPS/TypeSupportPlugin/.gitignore | 15 +-------------- .../DCPS/TypeSupportPlugin/TypeSupportPlugin.cpp | 4 ++-- .../DCPS/TypeSupportPlugin/TypeSupportPlugin.idl | 5 ----- .../DCPS/TypeSupportPlugin/TypeSupportPlugin.mpc | 13 +------------ tests/DCPS/TypeSupportPlugin/run_test.pl | 4 +++- 5 files changed, 7 insertions(+), 34 deletions(-) delete mode 100644 tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.idl diff --git a/tests/DCPS/TypeSupportPlugin/.gitignore b/tests/DCPS/TypeSupportPlugin/.gitignore index 96684813881..a9d51f1adaa 100644 --- a/tests/DCPS/TypeSupportPlugin/.gitignore +++ b/tests/DCPS/TypeSupportPlugin/.gitignore @@ -1,14 +1 @@ -/TypeSupportPluginUser -/TypeSupportPluginC.cpp -/TypeSupportPluginC.h -/TypeSupportPluginC.inl -/TypeSupportPluginS.cpp -/TypeSupportPluginS.h -/TypeSupportPluginTypeSupportC.cpp -/TypeSupportPluginTypeSupportC.h -/TypeSupportPluginTypeSupportC.inl -/TypeSupportPluginTypeSupport.idl -/TypeSupportPluginTypeSupportImpl.cpp -/TypeSupportPluginTypeSupportImpl.h -/TypeSupportPluginTypeSupportS.cpp -/TypeSupportPluginTypeSupportS.h +/TypeSupportPlugin diff --git a/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.cpp b/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.cpp index bc11fcf43a7..357710ca3ab 100644 --- a/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.cpp +++ b/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.cpp @@ -20,12 +20,12 @@ int ACE_TMAIN(int argc, ACE_TCHAR* argv[]) DDS::DomainParticipantFactory_var dpf = TheParticipantFactoryWithArgs(argc, argv); ACE_DLL ts_plugin; - if (ts_plugin.open(ACE_TEXT("TypeSupportPlugin"))) { + if (ts_plugin.open(ACE_TEXT("ConsolidatedMessengerIdl"))) { ACE_ERROR((LM_ERROR, "ERROR: Failed to open the type support library\n")); return 1; } - const char* type_name = "TopicType"; + const char* const type_name = "Messenger::Message"; ACE_DEBUG((LM_DEBUG, "Getting TypeSupport for %C\n", type_name)); DDS::TypeSupport_var ts = Registered_Data_Types->lookup(0, type_name); if (!ts) { diff --git a/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.idl b/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.idl deleted file mode 100644 index c13c2781640..00000000000 --- a/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.idl +++ /dev/null @@ -1,5 +0,0 @@ -@topic -struct TopicType { - @key long key; - string value; -}; diff --git a/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.mpc b/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.mpc index c8a381b3266..e8a4b6b125d 100644 --- a/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.mpc +++ b/tests/DCPS/TypeSupportPlugin/TypeSupportPlugin.mpc @@ -1,15 +1,4 @@ -project(TypeSupportPlugin): dcps_test { - TypeSupport_Files { - dcps_ts_flags += -Gxtypes-complete - TypeSupportPlugin.idl - } - - Source_Files { - } -} - -project(TypeSupportPluginUser): dcps_test { - exename = TypeSupportPluginUser +project: dcps_cm { Source_Files { TypeSupportPlugin.cpp } diff --git a/tests/DCPS/TypeSupportPlugin/run_test.pl b/tests/DCPS/TypeSupportPlugin/run_test.pl index c81011934cc..f02c10e0e4d 100755 --- a/tests/DCPS/TypeSupportPlugin/run_test.pl +++ b/tests/DCPS/TypeSupportPlugin/run_test.pl @@ -8,7 +8,9 @@ use lib "$ENV{DDS_ROOT}/bin"; use PerlDDS::Run_Test; +PerlDDS::add_lib_path('../ConsolidatedMessengerIdl'); + my $test = new PerlDDS::TestFramework(); -$test->process('test', 'TypeSupportPluginUser', join(' ', @ARGV)); +$test->process('test', 'TypeSupportPlugin', join(' ', @ARGV)); $test->start_process('test'); exit $test->finish(60);