From 67fe053a4b2cd800bb0c12f546420fb358b86608 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Tue, 19 Apr 2016 19:34:09 +0200 Subject: Remove CIAO/DAnCE here because they are migrated to their own repositories --- .../dds4ccm/tests/CoherentWriter/.gitignore | 1 - .../dds4ccm/tests/CoherentWriter/Base/.gitignore | 12 - .../Base/CoherentWrite_Test_Base.idl | 24 - .../Base/CoherentWrite_Test_Base.mpc | 24 - .../tests/CoherentWriter/Base/Reader_Starter.idl | 22 - .../tests/CoherentWriter/Base/Reader_Starter.mpc | 109 ----- .../tests/CoherentWriter/Connector/.gitignore | 7 - .../Connector/CoherentWrite_Test_Connector.idl | 22 - .../Connector/CoherentWrite_Test_Connector.mpc | 142 ------ .../tests/CoherentWriter/Receiver/.gitignore | 5 - .../Receiver/CoherentWrite_Test_Receiver.idl | 25 -- .../Receiver/CoherentWrite_Test_Receiver.mpc | 155 ------- .../Receiver/CoherentWrite_Test_Receiver_exec.cpp | 498 --------------------- .../Receiver/CoherentWrite_Test_Receiver_exec.h | 214 --------- .../dds4ccm/tests/CoherentWriter/Sender/.gitignore | 5 - .../Sender/CoherentWrite_Test_Sender.idl | 24 - .../Sender/CoherentWrite_Test_Sender.mpc | 153 ------- .../Sender/CoherentWrite_Test_Sender_exec.cpp | 265 ----------- .../Sender/CoherentWrite_Test_Sender_exec.h | 162 ------- .../descriptors/CoherentWriter_Library.xml | 45 -- .../tests/CoherentWriter/descriptors/Plan.cdp | 462 ------------------- .../descriptors/USER_QOS_PROFILES.xml | 67 --- .../tests/CoherentWriter/descriptors/run_test.pl | 243 ---------- 23 files changed, 2686 deletions(-) delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/.gitignore delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/.gitignore delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.idl delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.mpc delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.idl delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.mpc delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/.gitignore delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.idl delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.mpc delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/.gitignore delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.idl delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.mpc delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.cpp delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.h delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/.gitignore delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.idl delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.mpc delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.cpp delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.h delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/CoherentWriter_Library.xml delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/Plan.cdp delete mode 100644 CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/USER_QOS_PROFILES.xml delete mode 100755 CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/run_test.pl (limited to 'CIAO/connectors/dds4ccm/tests/CoherentWriter') diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/.gitignore b/CIAO/connectors/dds4ccm/tests/CoherentWriter/.gitignore deleted file mode 100644 index 502167fa0b8..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/lib diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/.gitignore b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/.gitignore deleted file mode 100644 index ffebb99f763..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -/CoherentWrite_Test_Base.cxx -/CoherentWrite_Test_Base.h -/CoherentWrite_Test_BasePlugin.cxx -/CoherentWrite_Test_BasePlugin.h -/CoherentWrite_Test_BaseSupport.cxx -/CoherentWrite_Test_BaseSupport.h -/CoherentWrite_Test_Base_stub_export.h -/Reader_StarterE.idl -/Reader_Starter_exec_export.h -/Reader_Starter_lem_stub_export.h -/Reader_Starter_stub_export.h -/Reader_Starter_svnt_export.h diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.idl b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.idl deleted file mode 100644 index 58d4b9d347e..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.idl +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @file CoherentWrite_Test_Base.idl - * @author Marcel Smit (msmit@remedy.nl) - */ - -#ifndef COHERENT_WRITE_TEST_BASE_IDL -#define COHERENT_WRITE_TEST_BASE_IDL - -#pragma ndds typesupport "Base/CoherentWrite_Test_BaseSupport.h" -#pragma opendds typesupport "Base/CoherentWrite_Test_BaseTypeSupportImpl.h" - -#pragma DCPS_DATA_TYPE "CoherentWriteTest" -#pragma DCPS_DATA_KEY "CoherentWriteTest symbol" - -struct CoherentWriteTest { - string symbol; //@key - long iteration; -}; - -#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED -typedef sequence CoherentWriteTestSeq; -#endif - -#endif diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.mpc b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.mpc deleted file mode 100644 index 1fc2c2b7903..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/CoherentWrite_Test_Base.mpc +++ /dev/null @@ -1,24 +0,0 @@ -project (CoherentWrite_Test_Base_stub) : taoidldefaults, dds4ccm_ts_default { - sharedname = CoherentWrite_Test_Base_stub - dynamicflags += COHERENT_WRITE_TEST_BASE_STUB_BUILD_DLL - libout = ../lib - - idlflags += -SS -Sci \ - -Wb,stub_export_macro=COHERENT_WRITE_TEST_BASE_STUB_Export \ - -Wb,stub_export_include=CoherentWrite_Test_Base_stub_export.h - - IDL_Files { - idlflags += -Gxhst - CoherentWrite_Test_Base.idl - } - - opendds_ts_flags += --export=COHERENT_WRITE_TEST_BASE_STUB_Export - - DDSGenerator_Files { - CoherentWrite_Test_Base.idl - } - - Source_Files { - } -} - diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.idl b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.idl deleted file mode 100644 index fc0847932dc..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.idl +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @file Reader_Starter.idl - * @author Marcel Smit (msmit@remedy.nl) - */ - -#ifndef COHERENT_WRITE_STARTER_IDL -#define COHERENT_WRITE_STARTER_IDL - -#pragma ciao lem "Base/Reader_StarterE.idl" - -interface CoherentWriteStarter -{ - void set_reader_properties (in unsigned short nr_iterations); - void start_read (in unsigned short run); -}; - -interface CoherentWriteRestarter -{ - void restart_write (); -}; - -#endif /* COHERENT_WRITE_STARTER_IDL */ diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.mpc b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.mpc deleted file mode 100644 index 2b15e9e7c45..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Base/Reader_Starter.mpc +++ /dev/null @@ -1,109 +0,0 @@ -project(DDS_Coherent_Reader_Starter_idl_gen) : componentidldefaults, dds4ccm { - custom_only = 1 - idlflags += -Wb,stub_export_macro=READER_STARTER_STUB_Export \ - -Wb,stub_export_include=Reader_Starter_stub_export.h \ - -Wb,skel_export_macro=READER_STARTER_SVNT_Export \ - -Wb,skel_export_include=Reader_Starter_svnt_export.h \ - -Wb,svnt_export_macro=READER_STARTER_SVNT_Export \ - -Wb,svnt_export_include=Reader_Starter_svnt_export.h \ - -Wb,exec_export_macro=READER_STARTER_EXEC_Export \ - -Wb,exec_export_include=Reader_Starter_exec_export.h -I.. - - IDL_Files { - Reader_Starter.idl - } -} - -project(DDS_Coherent_Reader_Starter_lem_gen) : ciaoidldefaults, dds4ccm { - after += DDS_Coherent_Reader_Starter_idl_gen - custom_only = 1 - idlflags += -Wb,stub_export_macro=READER_STARTER_LEM_STUB_Export \ - -Wb,stub_export_include=Reader_Starter_lem_stub_export.h \ - -SS -Gxhst -I.. - - IDL_Files { - Reader_StarterE.idl - } -} - -project(DDS_Coherent_Reader_Starter_lem_stub) : ccm_svnt, dds4ccm_base { - after += DDS_Coherent_Reader_Starter_lem_gen DDS_Coherent_Reader_Starter_stub - libs += Reader_Starter_stub - libpaths += ../lib - libout = ../lib - includes += .. - sharedname = Reader_Starter_lem_stub - dynamicflags += READER_STARTER_LEM_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - Reader_StarterEC.cpp - } - - Header_Files { - Reader_StarterEC.h - Reader_Starter_lem_stub_export.h - } - - Inline_Files { - Reader_StarterEC.inl - } -} - -project(DDS_Coherent_Reader_Starter_stub) : ccm_stub, dds4ccm_base { - after += DDS_Coherent_Reader_Starter_idl_gen - libs += - libpaths += ../lib - libout = ../lib - includes += .. - sharedname = Reader_Starter_stub - dynamicflags += READER_STARTER_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - Reader_StarterC.cpp - } - - Header_Files { - Reader_StarterC.h - Reader_Starter_stub_export.h - } - - Inline_Files { - Reader_StarterC.inl - } -} - - -project(DDS_Coherent_Reader_Starter_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel { - after += DDS_Coherent_Reader_Starter_lem_stub DDS_Coherent_Reader_Starter_stub - sharedname = Reader_Starter_svnt - libs += Reader_Starter_stub Reader_Starter_lem_stub - libpaths += ../lib - libout = ../lib - includes += .. - dynamicflags += READER_STARTER_SVNT_BUILD_DLL - - IDL_Files { - } - - Source_Files { - Reader_StarterS.cpp - Reader_Starter_svnt.cpp - } - - Header_Files { - Reader_StarterS.h - Reader_Starter_svnt.h - Reader_Starter_svnt_export.h - } - - Inline_Files { - } -} - - diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/.gitignore b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/.gitignore deleted file mode 100644 index 3f22aee3083..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -/CoherentWrite_Test_ConnectorE.idl -/CoherentWrite_Test_Connector_conn.cpp -/CoherentWrite_Test_Connector_conn.h -/CoherentWrite_Test_Connector_conn_export.h -/CoherentWrite_Test_Connector_lem_stub_export.h -/CoherentWrite_Test_Connector_stub_export.h -/CoherentWrite_Test_Connector_svnt_export.h diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.idl b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.idl deleted file mode 100644 index 270b1189a74..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.idl +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @file CoherentWrite_Test_Connector.idl - * @author Marcel Smit (msmit@remedy.nl) - */ - -#ifndef COHERENT_WRITE_TEST_CONNECTOR_IDL_ -#define COHERENT_WRITE_TEST_CONNECTOR_IDL_ - -#include -#include - -#include "Base/CoherentWrite_Test_Base.idl" - -#pragma ciao lem "Connector/CoherentWrite_Test_ConnectorE.idl" - -#if (CIAO_DDS4CCM_OPENDDS==1) -# include "Base/CoherentWrite_Test_BaseTypeSupport.idl" -#endif - -module ::CCM_DDS::Typed < ::CoherentWriteTest, ::CoherentWriteTestSeq> CoherentWriteTestConnector; - -#endif /* CoherentWrite_Test_CONNECTOR_IDL_ */ diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.mpc b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.mpc deleted file mode 100644 index cc2fac6fbf8..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Connector/CoherentWrite_Test_Connector.mpc +++ /dev/null @@ -1,142 +0,0 @@ -// This file is generated with "generate_component_mpc.pl -p CoherentWrite_Test_Base -l .. -o ../lib -u DDS CoherentWrite_Test_Connector" - -project(CoherentWrite_Test_Connector_idl_gen) : connectoridldefaults, dds4ccm { - after += DDS4CCM_idl_gen CoherentWrite_Test_Base_stub - custom_only = 1 - idlflags += -Wb,stub_export_macro=COHERENT_WRITE_TEST_CONNECTOR_STUB_Export \ - -Wb,stub_export_include=CoherentWrite_Test_Connector_stub_export.h \ - -Wb,skel_export_macro=COHERENT_WRITE_TEST_CONNECTOR_SVNT_Export \ - -Wb,skel_export_include=CoherentWrite_Test_Connector_svnt_export.h \ - -Wb,svnt_export_macro=COHERENT_WRITE_TEST_CONNECTOR_SVNT_Export \ - -Wb,svnt_export_include=CoherentWrite_Test_Connector_svnt_export.h \ - -Wb,conn_export_macro=COHERENT_WRITE_TEST_CONNECTOR_CONN_Export \ - -Wb,conn_export_include=CoherentWrite_Test_Connector_conn_export.h \ - -I .. - - IDL_Files { - CoherentWrite_Test_Connector.idl - } -} - -project(CoherentWrite_Test_Connector_lem_gen) : ciaoidldefaults, dds4ccm { - custom_only = 1 - after += CoherentWrite_Test_Connector_idl_gen - idlflags += -Wb,stub_export_macro=COHERENT_WRITE_TEST_CONNECTOR_LEM_STUB_Export \ - -Wb,stub_export_include=CoherentWrite_Test_Connector_lem_stub_export.h \ - -SS -Gxhst \ - -I .. - - IDL_Files { - CoherentWrite_Test_ConnectorE.idl - } -} - -project(CoherentWrite_Test_Connector_lem_stub) : ccm_svnt, dds4ccm_lem_stub { - after += CoherentWrite_Test_Connector_lem_gen CoherentWrite_Test_Connector_stub CoherentWrite_Test_Base_stub - libs += CoherentWrite_Test_Base_stub CoherentWrite_Test_Connector_stub - libpaths += ../lib - libout = ../lib - includes += .. - sharedname = CoherentWrite_Test_Connector_lem_stub - dynamicflags += COHERENT_WRITE_TEST_CONNECTOR_LEM_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_ConnectorEC.cpp - } - - Header_Files { - CoherentWrite_Test_ConnectorEC.h - CoherentWrite_Test_Connector_lem_stub_export.h - } - - Inline_Files { - CoherentWrite_Test_ConnectorEC.inl - } -} - -project(CoherentWrite_Test_Connector_stub) : ccm_stub, dds4ccm_base { - after += CoherentWrite_Test_Connector_idl_gen CoherentWrite_Test_Base_stub - libs += CoherentWrite_Test_Base_stub - libpaths += ../lib - libout = ../lib - includes += .. - sharedname = CoherentWrite_Test_Connector_stub - dynamicflags += COHERENT_WRITE_TEST_CONNECTOR_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_ConnectorC.cpp - } - - Header_Files { - CoherentWrite_Test_ConnectorC.h - CoherentWrite_Test_Connector_stub_export.h - } - - Inline_Files { - CoherentWrite_Test_ConnectorC.inl - } -} - -project(CoherentWrite_Test_Connector_exec) : ciao_executor, dds4ccm_impl { - after += CoherentWrite_Test_Connector_lem_stub CoherentWrite_Test_Connector_stub CoherentWrite_Test_Base_stub - sharedname = CoherentWrite_Test_Connector_exec - libs += CoherentWrite_Test_Connector_stub CoherentWrite_Test_Connector_lem_stub CoherentWrite_Test_Base_stub CoherentWrite_Test_Base_stub - libpaths += ../lib - libout = ../lib - includes += .. - dynamicflags += COHERENT_WRITE_TEST_CONNECTOR_CONN_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_Connector_conn.cpp - } - - Header_Files { - CoherentWrite_Test_Connector_conn.h - CoherentWrite_Test_Connector_conn_export.h - } - - Inline_Files { - } -} - - -project(CoherentWrite_Test_Connector_svnt) : ciao_servant, dds4ccm_impl { - after += CoherentWrite_Test_Connector_lem_stub CoherentWrite_Test_Connector_exec CoherentWrite_Test_Connector_stub - sharedname = CoherentWrite_Test_Connector_svnt - libs += CoherentWrite_Test_Connector_stub \ - CoherentWrite_Test_Connector_lem_stub \ - CoherentWrite_Test_Base_stub \ - CoherentWrite_Test_Connector_exec - libpaths += ../lib - libout = ../lib - includes += .. - dynamicflags += COHERENT_WRITE_TEST_CONNECTOR_SVNT_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_ConnectorS.cpp - CoherentWrite_Test_Connector_svnt.cpp - } - - Header_Files { - CoherentWrite_Test_ConnectorS.h - CoherentWrite_Test_Connector_svnt.h - CoherentWrite_Test_Connector_svnt_export.h - } - - Inline_Files { - } -} - - diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/.gitignore b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/.gitignore deleted file mode 100644 index 15ee47edcab..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/CoherentWrite_Test_ReceiverE.idl -/Receiver_exec_export.h -/Receiver_lem_stub_export.h -/Receiver_stub_export.h -/Receiver_svnt_export.h diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.idl b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.idl deleted file mode 100644 index 8591550a8ea..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.idl +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @file - * @author Marcel Smit (msmit@remedy.nl) - */ - -#ifndef RECEIVER_IDL -#define RECEIVER_IDL - -#include "Connector/CoherentWrite_Test_Connector.idl" -#include "Base/Reader_Starter.idl" - -module CoherentWrite_Test -{ - component Receiver - { - port CoherentWriteTestConnector::DDS_Get info_out; - - provides CoherentWriteStarter reader_start; - uses CoherentWriteRestarter writer_restart; - - attribute unsigned short nr_runs; - }; -}; - -#endif diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.mpc b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.mpc deleted file mode 100644 index e66cc09b7ae..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver.mpc +++ /dev/null @@ -1,155 +0,0 @@ -project(CoherentWrite_Test_Receiver_idl_gen) : componentidldefaults, dds4ccm { - custom_only = 1 - after += CoherentWrite_Test_Connector_idl_gen - idlflags += -Wb,stub_export_macro=RECEIVER_STUB_Export \ - -Wb,stub_export_include=Receiver_stub_export.h \ - -Wb,skel_export_macro=RECEIVER_SVNT_Export \ - -Wb,skel_export_include=Receiver_svnt_export.h \ - -Wb,svnt_export_macro=RECEIVER_SVNT_Export \ - -Wb,svnt_export_include=Receiver_svnt_export.h \ - -Wb,exec_export_macro=RECEIVER_EXEC_Export \ - -Wb,exec_export_include=Receiver_exec_export.h \ - -I.. - - IDL_Files { - CoherentWrite_Test_Receiver.idl - } -} - -project(CoherentWrite_Test_Receiver_lem_gen) : ciaoidldefaults, dds4ccm { - after += CoherentWrite_Test_Receiver_idl_gen - custom_only = 1 - idlflags += -Wb,stub_export_macro=RECEIVER_LEM_STUB_Export \ - -Wb,stub_export_include=Receiver_lem_stub_export.h \ - -SS -Gxhst -I.. - - IDL_Files { - CoherentWrite_Test_ReceiverE.idl - } -} - -project(CoherentWrite_Test_Receiver_lem_stub) : ccm_svnt, dds4ccm_base { - after += CoherentWrite_Test_Receiver_lem_gen CoherentWrite_Test_Receiver_stub \ - CoherentWrite_Test_Connector_stub CoherentWrite_Test_Base_stub \ - DDS_Coherent_Reader_Starter_stub - libs += Receiver_stub CoherentWrite_Test_Connector_stub \ - CoherentWrite_Test_Base_stub Reader_Starter_stub - libpaths += ../lib - libout = ../lib - includes += .. - sharedname = Receiver_lem_stub - dynamicflags += RECEIVER_LEM_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_ReceiverEC.cpp - } - - Header_Files { - CoherentWrite_Test_ReceiverEC.h - Receiver_lem_stub_export.h - } - - Inline_Files { - CoherentWrite_Test_ReceiverEC.inl - } -} - -project(CoherentWrite_Test_Receiver_stub) : ccm_stub, dds4ccm_base { - after += CoherentWrite_Test_Receiver_idl_gen CoherentWrite_Test_Connector_stub \ - CoherentWrite_Test_Base_stub CoherentWrite_Test_Connector_lem_gen \ - DDS_Coherent_Reader_Starter_stub DDS_Coherent_Reader_Starter_lem_stub - libs += CoherentWrite_Test_Connector_stub CoherentWrite_Test_Base_stub \ - Reader_Starter_stub - libpaths += ../lib - libout = ../lib - includes += .. - sharedname = Receiver_stub - dynamicflags += RECEIVER_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_ReceiverC.cpp - } - - Header_Files { - CoherentWrite_Test_ReceiverC.h - Receiver_stub_export.h - } - - Inline_Files { - CoherentWrite_Test_ReceiverC.inl - } -} - -project(CoherentWrite_Test_Receiver_exec) : ciao_executor, dds4ccm_lem_stub { - after += CoherentWrite_Test_Receiver_lem_stub CoherentWrite_Test_Receiver_stub \ - CoherentWrite_Test_Base_stub CoherentWrite_Test_Connector_stub \ - CoherentWrite_Test_Connector_lem_stub \ - DDS_Coherent_Reader_Starter_lem_stub DDS_Coherent_Reader_Starter_stub - sharedname = Receiver_exec - libs += Receiver_stub Receiver_lem_stub CoherentWrite_Test_Base_stub \ - CoherentWrite_Test_Connector_stub CoherentWrite_Test_Connector_lem_stub \ - Reader_Starter_lem_stub Reader_Starter_stub - libpaths += ../lib - libout = ../lib - includes += .. - dynamicflags += RECEIVER_EXEC_BUILD_DLL READER_STARTER_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_Receiver_exec.cpp - } - - Header_Files { - CoherentWrite_Test_Receiver_exec.h - Receiver_exec_export.h - } - - Inline_Files { - } -} - - -project(CoherentWrite_Test_Receiver_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel { - after += CoherentWrite_Test_Receiver_lem_stub CoherentWrite_Test_Base_stub \ - CoherentWrite_Test_Connector_stub CoherentWrite_Test_Connector_svnt \ - CoherentWrite_Test_Receiver_exec CoherentWrite_Test_Connector_lem_stub \ - DDS_Coherent_Reader_Starter_stub \ - DDS_Coherent_Reader_Starter_svnt DDS_Coherent_Reader_Starter_lem_stub - sharedname = Receiver_svnt - libs += Receiver_stub Receiver_lem_stub CoherentWrite_Test_Base_stub \ - CoherentWrite_Test_Connector_stub CoherentWrite_Test_Connector_svnt \ - Receiver_exec CoherentWrite_Test_Connector_lem_stub \ - Reader_Starter_stub Reader_Starter_svnt \ - Reader_Starter_lem_stub - libpaths += ../lib - libout = ../lib - includes += .. - dynamicflags += RECEIVER_SVNT_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_ReceiverS.cpp - CoherentWrite_Test_Receiver_svnt.cpp - } - - Header_Files { - CoherentWrite_Test_ReceiverS.h - CoherentWrite_Test_Receiver_svnt.h - Receiver_svnt_export.h - } - - Inline_Files { - } -} - - diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.cpp b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.cpp deleted file mode 100644 index 061c5f5cd15..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.cpp +++ /dev/null @@ -1,498 +0,0 @@ -// -*- C++ -*- -/** - * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3 - * TAO and the TAO IDL Compiler have been developed by: - * Center for Distributed Object Computing - * Washington University - * St. Louis, MO - * USA - * http://www.cs.wustl.edu/~schmidt/doc-center.html - * and - * Distributed Object Computing Laboratory - * University of California at Irvine - * Irvine, CA - * USA - * and - * Institute for Software Integrated Systems - * Vanderbilt University - * Nashville, TN - * USA - * http://www.isis.vanderbilt.edu/ - * - * Information about TAO is available at: - * http://www.dre.vanderbilt.edu/~schmidt/TAO.html - **/ - -#include "CoherentWrite_Test_Receiver_exec.h" -#include "tao/ORB_Core.h" -#include "ace/Reactor.h" - -namespace CIAO_CoherentWrite_Test_Receiver_Impl -{ - /** - * Read action Generator - */ - - read_action_Generator::read_action_Generator (Receiver_exec_i &callback, - int run) - : callback_ (callback), - run_ (run) - { - } - - read_action_Generator::~read_action_Generator () - { - } - - int - read_action_Generator::handle_timeout (const ACE_Time_Value &, const void *) - { - ACE_DEBUG ((LM_DEBUG, "Checking if last sample " - "is available in DDS...\n")); - // Use get_many for every even number. In that case, don't check whether - // the last sample has arrived since the samples are read by then (the - // getter only reads unread samples). - if (this->run_ % 2 == 1) - { - // Odd number so check if the last sample is available in DDS. - if (this->callback_.check_last ()) - this->callback_.run (this->run_); - } - else - this->callback_.run (this->run_); - return 0; - } - - /** - * Facet Executor Implementation Class: info_out_status_exec_i - */ - - info_out_status_exec_i::info_out_status_exec_i ( - ::CoherentWrite_Test::CCM_Receiver_Context_ptr ctx) - : ciao_context_ ( - ::CoherentWrite_Test::CCM_Receiver_Context::_duplicate (ctx)) - { - } - - info_out_status_exec_i::~info_out_status_exec_i (void) - { - } - - // Operations from ::CCM_DDS::PortStatusListener - - void - info_out_status_exec_i::on_requested_deadline_missed (::DDS::DataReader_ptr /* the_reader */, - const ::DDS::RequestedDeadlineMissedStatus & /* status */) - { - /* Your code here. */ - } - - void - info_out_status_exec_i::on_sample_lost (::DDS::DataReader_ptr /* the_reader */, - const ::DDS::SampleLostStatus & /* status */) - { - /* Your code here. */ - } - - /** - * Facet Executor Implementation Class: reader_start_exec_i - */ - - reader_start_exec_i::reader_start_exec_i ( - ::CoherentWrite_Test::CCM_Receiver_Context_ptr ctx, - Receiver_exec_i &callback) - : ciao_context_ ( - ::CoherentWrite_Test::CCM_Receiver_Context::_duplicate (ctx)) - , callback_ (callback) - { - } - - reader_start_exec_i::~reader_start_exec_i (void) - { - } - - // Operations from ::CoherentWriteStarter - - void - reader_start_exec_i::set_reader_properties (::CORBA::UShort nr_iterations) - { - this->callback_.iterations (nr_iterations); - } - - void - reader_start_exec_i::start_read (::CORBA::UShort run) - { - this->callback_.start_read (run); - } - - /** - * Component Executor Implementation Class: Receiver_exec_i - */ - - Receiver_exec_i::Receiver_exec_i (void) - : nr_runs_ (0) - , iterations_ (10) - , run_ (0) - , last_iter_ (0) - , ticker_ (0) - { - } - - Receiver_exec_i::~Receiver_exec_i (void) - { - } - - // Supported operations and attributes. - ACE_Reactor* - Receiver_exec_i::reactor (void) - { - ACE_Reactor* reactor = 0; - ::CORBA::Object_var ccm_object = - this->ciao_context_->get_CCM_object(); - if (! ::CORBA::is_nil (ccm_object.in ())) - { - ::CORBA::ORB_var orb = ccm_object->_get_orb (); - if (! ::CORBA::is_nil (orb.in ())) - { - reactor = orb->orb_core ()->reactor (); - } - } - if (reactor == 0) - { - throw ::CORBA::INTERNAL (); - } - return reactor; - } - - bool - Receiver_exec_i::check_last (void) - { - try - { - ::CoherentWriteTestConnector::Reader_var reader = - this->ciao_context_->get_connection_info_out_data (); - CoherentWriteTest coherentwrite_info; - ::CCM_DDS::ReadInfo readinfo; - coherentwrite_info.symbol = CORBA::string_dup ("KEY_1"); - reader->read_one_last ( - coherentwrite_info, - readinfo, - ::DDS::HANDLE_NIL); - ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::check_last - " - "last iteration <%d> - <%d>\n", - coherentwrite_info.iteration, - (this->run_ + 1) * this->iterations_ - 1)); - return coherentwrite_info.iteration >= (this->run_ + 1) * this->iterations_ - 1; - } - catch (const ::CCM_DDS::InternalError &) - { - } - catch (const ::CCM_DDS::NonExistent &) - { - } - catch (...) - { - ACE_ERROR ((LM_ERROR, "Receiver_exec_i::check_last: " - "ERROR: Unexpected exception caught\n")); - } - return false; - } - - void - Receiver_exec_i::check_iters (const char * test, - const CoherentWriteTestSeq& coherentwrite_info_seq) - { - for (CORBA::ULong it = 0; it < coherentwrite_info_seq.length (); ++it) - { - if (coherentwrite_info_seq[it].iteration > this->last_iter_) - { - if (coherentwrite_info_seq[it].iteration == ++this->last_iter_) - { - ACE_DEBUG ((LM_DEBUG, "%C ALL OK: ", test)); - } - else - { - ACE_ERROR ((LM_ERROR, "%C ALL ERROR: ", test)); - } - ACE_DEBUG ((LM_DEBUG, "expected: <%u> - " - "received <%d>\n", - this->last_iter_, - coherentwrite_info_seq[it].iteration)); - } - } - if (this->run_ < this->nr_runs () + 1) - { - ::CoherentWriteRestarter_var restarter = - this->ciao_context_->get_connection_writer_restart (); - if (!::CORBA::is_nil (restarter.in ())) - restarter->restart_write (); - else - ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - " - "Unable to restart the writer " - "since the restarter is nil.\n")); - } - else - { - ACE_DEBUG ((LM_DEBUG, "Finished: wait for shutdown\n")); - } - } - - void - Receiver_exec_i::get_all (void) - { - try - { - ::CoherentWriteTestConnector::Getter_var getter = - this->ciao_context_->get_connection_info_out_fresh_data (); - - if (::CORBA::is_nil (getter.in ())) - { - ACE_ERROR ((LM_ERROR, "Receiver_exec_i::get_all - " - "Unable to get samples since " - "getter is nil.\n")); - return; - } - DDS::Duration_t to; - to.sec = 5; - to.nanosec = 0; - getter->time_out (to); - - CoherentWriteTestSeq coherentwrite_info_seq; - ::CCM_DDS::ReadInfoSeq readinfo_seq; - getter->get_many (coherentwrite_info_seq, readinfo_seq); - - this->check_iters ("GET", coherentwrite_info_seq); - } - catch (const CCM_DDS::NonExistent& ) - { - ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: GET ALL: ") - ACE_TEXT ("caught NonExistent exception\n"))); - } - catch (const CCM_DDS::InternalError& ex) - { - ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: GET ALL: ") - ACE_TEXT ("caught InternalError exception: retval <%u>\n"), - ex.error_code)); - } - catch (const ::CORBA::Exception& ex) - { - ex._tao_print_exception ("ERROR: GET ALL: "); - ACE_ERROR ((LM_ERROR, - ACE_TEXT ("ERROR: Receiver_exec_i::get_all : Exception caught\n"))); - } - } - - void - Receiver_exec_i::read_all (void) - { - try - { - ::CoherentWriteTestConnector::Reader_var reader = - this->ciao_context_->get_connection_info_out_data (); - - if (::CORBA::is_nil (reader.in ())) - { - ACE_ERROR ((LM_ERROR, "Receiver_exec_i::read_all - " - "Unable to read since reader or " - "restarter is nil.\n")); - return; - } - - CoherentWriteTestSeq coherentwrite_info_seq; - ::CCM_DDS::ReadInfoSeq readinfo_seq; - reader->read_all (coherentwrite_info_seq, readinfo_seq); - - this->check_iters ("READ", coherentwrite_info_seq); - } - catch (const CCM_DDS::NonExistent& ex) - { - for (CORBA::ULong i = 0; i < ex.indexes.length (); ++i) - { - ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("READ ALL: ") - ACE_TEXT ("caught expected exception: index <%u>\n"), - ex.indexes[i])); - } - } - catch (const CCM_DDS::InternalError& ex) - { - ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: READ ALL: ") - ACE_TEXT ("caught InternalError exception: retval <%u>\n"), - ex.error_code)); - } - catch (const ::CORBA::Exception& ex) - { - ex._tao_print_exception ("ERROR: READ ALL: "); - ACE_ERROR ((LM_ERROR, - ACE_TEXT ("ERROR: Receiver_exec_i::read_all : Exception caught\n"))); - } - } - - void - Receiver_exec_i::start_read (CORBA::UShort run) - { - ACE_NEW_THROW_EX (this->ticker_, - read_action_Generator (*this, run), - ::CORBA::INTERNAL ()); - if (this->reactor ()->schedule_timer ( - this->ticker_, - 0, - ACE_Time_Value(1, 0), - ACE_Time_Value(1, 0)) == -1) - { - ACE_ERROR ((LM_ERROR, "Unable to schedule Timer\n")); - } - } - - void - Receiver_exec_i::run (CORBA::UShort run) - { - if (this->ticker_) - { - this->reactor ()->cancel_timer (this->ticker_); - delete this->ticker_; - this->ticker_ = 0; - } - ACE_DEBUG ((LM_DEBUG, "Receiver_exec_i::run - " - "Starting run number <%d>\n", - run)); - this->run_ = run; - if (this->run_ % 2 == 1) - this->read_all (); - else - this->get_all (); - } - - ::CORBA::UShort - Receiver_exec_i::iterations (void) - { - return this->iterations_; - } - - void - Receiver_exec_i::iterations (::CORBA::UShort iterations) - { - this->iterations_ = iterations; - } - // Component attributes and port operations. - - ::CCM_DDS::CCM_PortStatusListener_ptr - Receiver_exec_i::get_info_out_status (void) - { - if ( ::CORBA::is_nil (this->ciao_info_out_status_.in ())) - { - info_out_status_exec_i *tmp = 0; - ACE_NEW_RETURN ( - tmp, - info_out_status_exec_i ( - this->ciao_context_.in ()), - ::CCM_DDS::CCM_PortStatusListener::_nil ()); - - this->ciao_info_out_status_ = tmp; - } - - return - ::CCM_DDS::CCM_PortStatusListener::_duplicate ( - this->ciao_info_out_status_.in ()); - } - - ::CCM_CoherentWriteStarter_ptr - Receiver_exec_i::get_reader_start (void) - { - if ( ::CORBA::is_nil (this->ciao_reader_start_.in ())) - { - reader_start_exec_i *tmp = 0; - ACE_NEW_RETURN ( - tmp, - reader_start_exec_i ( - this->ciao_context_.in (), - *this), - ::CCM_CoherentWriteStarter::_nil ()); - - this->ciao_reader_start_ = tmp; - } - - return - ::CCM_CoherentWriteStarter::_duplicate ( - this->ciao_reader_start_.in ()); - } - - ::CORBA::UShort - Receiver_exec_i::nr_runs (void) - { - return this->nr_runs_; - } - - void - Receiver_exec_i::nr_runs ( - const ::CORBA::UShort nr_runs) - { - this->nr_runs_ = nr_runs; - } - - // Operations from Components::SessionComponent. - - void - Receiver_exec_i::set_session_context ( - ::Components::SessionContext_ptr ctx) - { - this->ciao_context_ = - ::CoherentWrite_Test::CCM_Receiver_Context::_narrow (ctx); - - if ( ::CORBA::is_nil (this->ciao_context_.in ())) - { - throw ::CORBA::INTERNAL (); - } - } - - void - Receiver_exec_i::configuration_complete (void) - { - /* Your code here. */ - } - - void - Receiver_exec_i::ccm_activate (void) - { - /* Your code here. */ - } - - void - Receiver_exec_i::ccm_passivate (void) - { - /* Your code here. */ - } - - void - Receiver_exec_i::ccm_remove (void) - { - if (this->ticker_) - { - this->reactor ()->cancel_timer (this->ticker_); - delete this->ticker_; - this->ticker_ = 0; - } - if (this->run_ == 1) - { - ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: ") - ACE_TEXT ("Test did not run") - ACE_TEXT ("events.\n"))); - } - else - { - ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Finished coherent write test.\n"))); - } - } - - extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr - create_CoherentWrite_Test_Receiver_Impl (void) - { - ::Components::EnterpriseComponent_ptr retval = - ::Components::EnterpriseComponent::_nil (); - - ACE_NEW_NORETURN ( - retval, - Receiver_exec_i); - - return retval; - } -} diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.h b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.h deleted file mode 100644 index ae74291ae77..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Receiver/CoherentWrite_Test_Receiver_exec.h +++ /dev/null @@ -1,214 +0,0 @@ -// -*- C++ -*- -/** - * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3 - * TAO and the TAO IDL Compiler have been developed by: - * Center for Distributed Object Computing - * Washington University - * St. Louis, MO - * USA - * http://www.cs.wustl.edu/~schmidt/doc-center.html - * and - * Distributed Object Computing Laboratory - * University of California at Irvine - * Irvine, CA - * USA - * and - * Institute for Software Integrated Systems - * Vanderbilt University - * Nashville, TN - * USA - * http://www.isis.vanderbilt.edu/ - * - * Information about TAO is available at: - * http://www.dre.vanderbilt.edu/~schmidt/TAO.html - **/ -#ifndef CIAO_COHERENTWRITE_TEST_RECEIVER_EXEC_Q0HRJG_H_ -#define CIAO_COHERENTWRITE_TEST_RECEIVER_EXEC_Q0HRJG_H_ - -#include /**/ "ace/pre.h" - -#include "CoherentWrite_Test_ReceiverEC.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include /**/ "Receiver_exec_export.h" -#include "tao/LocalObject.h" - -namespace CIAO_CoherentWrite_Test_Receiver_Impl -{ - class Receiver_exec_i; - - /** - * Read action Generator - */ - class read_action_Generator - : public ACE_Event_Handler - { - public: - read_action_Generator (Receiver_exec_i &callback, - int run); - - ~read_action_Generator (); - - virtual int handle_timeout (const ACE_Time_Value &tv, - const void *arg); - private: - Receiver_exec_i &callback_; - int run_; - }; - - - /** - * Provider Executor Implementation Class: info_out_status_exec_i - */ - - class info_out_status_exec_i - : public virtual ::CCM_DDS::CCM_PortStatusListener, - public virtual ::CORBA::LocalObject - { - public: - info_out_status_exec_i ( - ::CoherentWrite_Test::CCM_Receiver_Context_ptr ctx); - virtual ~info_out_status_exec_i (void); - - //@{ - /** Operations and attributes from CCM_DDS::PortStatusListener. */ - - virtual - void on_requested_deadline_missed (::DDS::DataReader_ptr the_reader, - const ::DDS::RequestedDeadlineMissedStatus & status); - - virtual - void on_sample_lost (::DDS::DataReader_ptr the_reader, - const ::DDS::SampleLostStatus & status); - //@} - - private: - ::CoherentWrite_Test::CCM_Receiver_Context_var ciao_context_; - }; - - /** - * Provider Executor Implementation Class: reader_start_exec_i - */ - - class reader_start_exec_i - : public virtual ::CCM_CoherentWriteStarter, - public virtual ::CORBA::LocalObject - { - public: - reader_start_exec_i ( - ::CoherentWrite_Test::CCM_Receiver_Context_ptr ctx, - Receiver_exec_i &callback); - - virtual ~reader_start_exec_i (void); - - //@{ - /** Operations and attributes from CoherentWriteStarter. */ - - virtual - void set_reader_properties (::CORBA::UShort nr_iterations); - - virtual - void start_read (::CORBA::UShort run); - //@} - - private: - ::CoherentWrite_Test::CCM_Receiver_Context_var ciao_context_; - Receiver_exec_i &callback_; - }; - - /** - * Component Executor Implementation Class: Receiver_exec_i - */ - - class Receiver_exec_i - : public virtual Receiver_Exec, - public virtual ::CORBA::LocalObject - { - public: - Receiver_exec_i (void); - virtual ~Receiver_exec_i (void); - - //@{ - /** Supported operations and attributes. */ - - //@} - - //@{ - /** Component attributes and port operations. */ - - virtual ::CCM_DDS::CCM_PortStatusListener_ptr - get_info_out_status (void); - - virtual ::CCM_CoherentWriteStarter_ptr - get_reader_start (void); - - virtual ::CORBA::UShort nr_runs (void); - - virtual void nr_runs (::CORBA::UShort nr_runs); - //@} - - //@{ - /** Operations from Components::SessionComponent. */ - virtual void set_session_context (::Components::SessionContext_ptr ctx); - virtual void configuration_complete (void); - virtual void ccm_activate (void); - virtual void ccm_passivate (void); - virtual void ccm_remove (void); - //@} - - //@{ - /** User defined public operations. */ - bool check_last (void); - void start_read (CORBA::UShort run); - void run (CORBA::UShort run); - - ::CORBA::UShort iterations (void); - void iterations (::CORBA::UShort iterations); - //@} - - private: - ::CoherentWrite_Test::CCM_Receiver_Context_var ciao_context_; - - //@{ - /** Component attributes. */ - ::CCM_DDS::CCM_PortStatusListener_var ciao_info_out_status_; - ::CCM_CoherentWriteStarter_var ciao_reader_start_; - - ::CORBA::UShort nr_runs_; - //@} - - //@{ - /** User defined members. */ - CORBA::UShort iterations_; - CORBA::UShort run_; - CORBA::Long last_iter_; - - read_action_Generator *ticker_; - - void check_iters (const char * test, - const CoherentWriteTestSeq& coherentwrite_info_seq); - - void get_all (void); - void read_all (void); - - //@} - - //@{ - /** User defined private operations. */ - - //@} - - /// Get the ACE_Reactor - ACE_Reactor* reactor (void); - }; - - extern "C" RECEIVER_EXEC_Export ::Components::EnterpriseComponent_ptr - create_CoherentWrite_Test_Receiver_Impl (void); -} - -#include /**/ "ace/post.h" - -#endif /* ifndef */ diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/.gitignore b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/.gitignore deleted file mode 100644 index ddc0ac818d7..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/CoherentWrite_Test_SenderE.idl -/Sender_exec_export.h -/Sender_lem_stub_export.h -/Sender_stub_export.h -/Sender_svnt_export.h diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.idl b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.idl deleted file mode 100644 index 0e9cfb46df9..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.idl +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @author Marcel Smit (msmit@remedy.nl) - */ - -#ifndef DDS_COHERENT_WRITE_TEST_SENDER_IDL -#define DDS_COHERENT_WRITE_TEST_SENDER_IDL - -#include "Connector/CoherentWrite_Test_Connector.idl" -#include "Base/Reader_Starter.idl" - -module CoherentWrite_Test -{ - component Sender - { - port CoherentWriteTestConnector::DDS_Write info_write; - - uses CoherentWriteStarter start_reader; - provides CoherentWriteRestarter restart_writer; - - attribute unsigned short iterations; - }; -}; - -#endif diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.mpc b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.mpc deleted file mode 100644 index bc87dee5517..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender.mpc +++ /dev/null @@ -1,153 +0,0 @@ -// This file is generated with "generate_component_mpc.pl -p CoherentWrite_Test_Base -l ../lib -o ../lib -c controller -u DDS Sender" - -project(CoherentWrite_Test_Sender_idl_gen) : componentidldefaults, dds4ccm { - after += CoherentWrite_Test_Connector_idl_gen DDS_Starter_idl_gen - custom_only = 1 - idlflags += -Wb,stub_export_macro=SENDER_STUB_Export \ - -Wb,stub_export_include=Sender_stub_export.h \ - -Wb,skel_export_macro=SENDER_SVNT_Export \ - -Wb,skel_export_include=Sender_svnt_export.h \ - -Wb,svnt_export_macro=SENDER_SVNT_Export \ - -Wb,svnt_export_include=Sender_svnt_export.h \ - -Wb,exec_export_macro=SENDER_EXEC_Export \ - -Wb,exec_export_include=Sender_exec_export.h \ - -I.. - - IDL_Files { - CoherentWrite_Test_Sender.idl - } -} - -project(CoherentWrite_Test_Sender_lem_gen) : ciaoidldefaults, dds4ccm { - after += CoherentWrite_Test_Sender_idl_gen - custom_only = 1 - idlflags += -Wb,stub_export_macro=SENDER_LEM_STUB_Export \ - -Wb,stub_export_include=Sender_lem_stub_export.h \ - -SS -Gxhst -I $CIAO_ROOT/connectors -I .. - - IDL_Files { - CoherentWrite_Test_SenderE.idl - } -} - -project(CoherentWrite_Test_Sender_lem_stub) : ccm_svnt, dds4ccm_base { - after += CoherentWrite_Test_Sender_lem_gen CoherentWrite_Test_Sender_stub \ - CoherentWrite_Test_Base_stub DDS_Coherent_Reader_Starter_stub - libs += CoherentWrite_Test_Base_stub Sender_stub Reader_Starter_stub - libpaths += ../lib - libout = ../lib - includes += .. - sharedname = Sender_lem_stub - dynamicflags += SENDER_LEM_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_SenderEC.cpp - } - - Header_Files { - CoherentWrite_Test_SenderEC.h - Sender_lem_stub_export.h - } - - Inline_Files { - CoherentWrite_Test_SenderEC.inl - } -} - -project(CoherentWrite_Test_Sender_stub) : ccm_stub, dds4ccm_base { - after += CoherentWrite_Test_Sender_idl_gen CoherentWrite_Test_Base_stub \ - CoherentWrite_Test_Connector_stub DDS_Coherent_Reader_Starter_stub \ - DDS_Coherent_Reader_Starter_lem_stub - libs += CoherentWrite_Test_Base_stub CoherentWrite_Test_Connector_stub \ - Reader_Starter_stub - includes += .. - libpaths += ../lib - libout = ../lib - sharedname = Sender_stub - dynamicflags += SENDER_STUB_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_SenderC.cpp - } - - Header_Files { - CoherentWrite_Test_SenderC.h - Sender_stub_export.h - } - - Inline_Files { - CoherentWrite_Test_SenderC.inl - } -} - -project(CoherentWrite_Test_Sender_exec) : ciao_executor, dds4ccm_lem_stub { - after += CoherentWrite_Test_Sender_lem_stub CoherentWrite_Test_Sender_stub \ - CoherentWrite_Test_Connector_lem_stub CoherentWrite_Test_Connector_stub \ - DDS_Coherent_Reader_Starter_lem_stub - sharedname = Sender_exec - libs += Sender_stub Sender_lem_stub CoherentWrite_Test_Base_stub \ - CoherentWrite_Test_Connector_lem_stub CoherentWrite_Test_Connector_stub \ - Reader_Starter_stub Reader_Starter_lem_stub \ - Reader_Starter_lem_stub - libpaths += ../lib - includes += .. - libout = ../lib - dynamicflags += SENDER_EXEC_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_Sender_exec.cpp - } - - Header_Files { - CoherentWrite_Test_Sender_exec.h - Sender_exec_export.h - } - - Inline_Files { - } -} - - -project(CoherentWrite_Test_Sender_svnt) : ciao_servant, dds4ccm_lem_stub, dds4ccm_skel { - after += CoherentWrite_Test_Base_stub CoherentWrite_Test_Sender_lem_stub \ - CoherentWrite_Test_Connector_stub \ - CoherentWrite_Test_Connector_svnt CoherentWrite_Test_Connector_lem_stub \ - DDS_Coherent_Reader_Starter_stub DDS_Coherent_Reader_Starter_svnt \ - DDS_Coherent_Reader_Starter_lem_stub - sharedname = Sender_svnt - libs += Sender_stub Sender_lem_stub CoherentWrite_Test_Base_stub \ - CoherentWrite_Test_Connector_stub CoherentWrite_Test_Connector_svnt \ - CoherentWrite_Test_Connector_lem_stub Reader_Starter_stub \ - Reader_Starter_svnt Reader_Starter_lem_stub - libpaths += ../lib - libout = ../lib - includes += .. - dynamicflags += SENDER_SVNT_BUILD_DLL - - IDL_Files { - } - - Source_Files { - CoherentWrite_Test_SenderS.cpp - CoherentWrite_Test_Sender_svnt.cpp - } - - Header_Files { - CoherentWrite_Test_SenderS.h - CoherentWrite_Test_Sender_svnt.h - Sender_svnt_export.h - } - - Inline_Files { - } -} - diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.cpp b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.cpp deleted file mode 100644 index 0c7f99cf703..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.cpp +++ /dev/null @@ -1,265 +0,0 @@ -// -*- C++ -*- -/** - * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3 - * TAO and the TAO IDL Compiler have been developed by: - * Center for Distributed Object Computing - * Washington University - * St. Louis, MO - * USA - * http://www.cs.wustl.edu/~schmidt/doc-center.html - * and - * Distributed Object Computing Laboratory - * University of California at Irvine - * Irvine, CA - * USA - * and - * Institute for Software Integrated Systems - * Vanderbilt University - * Nashville, TN - * USA - * http://www.isis.vanderbilt.edu/ - * - * Information about TAO is available at: - * http://www.dre.vanderbilt.edu/~schmidt/TAO.html - **/ - -#include "CoherentWrite_Test_Sender_exec.h" -#include "tao/ORB_Core.h" -#include "ace/Reactor.h" - -namespace CIAO_CoherentWrite_Test_Sender_Impl -{ - /** - * WriteHandler - */ - - WriteHandler::WriteHandler (Sender_exec_i &callback) - : callback_ (callback) - { - } - - int - WriteHandler::handle_exception (ACE_HANDLE) - { - this->callback_.start (); - return 0; - } - - /** - * Facet Executor Implementation Class: restart_writer_exec_i - */ - - restart_writer_exec_i::restart_writer_exec_i ( - ::CoherentWrite_Test::CCM_Sender_Context_ptr ctx, - Sender_exec_i &callback) - : ciao_context_ ( - ::CoherentWrite_Test::CCM_Sender_Context::_duplicate (ctx)) - , callback_ (callback) - { - } - - restart_writer_exec_i::~restart_writer_exec_i (void) - { - } - - // Operations from ::CoherentWriteRestarter - - void - restart_writer_exec_i::restart_write (void) - { - this->callback_.restart (); - } - - /** - * Component Executor Implementation Class: Sender_exec_i - */ - - Sender_exec_i::Sender_exec_i (void) - : iterations_ (0) - , run_ (1) - , total_iter (0) - , wh_ (0) - { - ACE_NEW_THROW_EX (this->wh_, - WriteHandler (*this), - ::CORBA::INTERNAL ()); - } - - Sender_exec_i::~Sender_exec_i (void) - { - delete this->wh_; - } - - // Supported operations and attributes. - ACE_Reactor* - Sender_exec_i::reactor (void) - { - ACE_Reactor* reactor = 0; - ::CORBA::Object_var ccm_object = - this->ciao_context_->get_CCM_object(); - if (! ::CORBA::is_nil (ccm_object.in ())) - { - ::CORBA::ORB_var orb = ccm_object->_get_orb (); - if (! ::CORBA::is_nil (orb.in ())) - { - reactor = orb->orb_core ()->reactor (); - } - } - if (reactor == 0) - { - throw ::CORBA::INTERNAL (); - } - return reactor; - } - - void - Sender_exec_i::restart (void) - { - ++this->run_; - delete this->wh_; - ACE_NEW_THROW_EX (this->wh_, - WriteHandler (*this), - ::CORBA::INTERNAL ()); - this->reactor ()->notify (this->wh_); - } - - void - Sender_exec_i::start (void) - { - ::CoherentWriteTestConnector::Writer_var writer = - this->ciao_context_->get_connection_info_write_data (); - - CoherentWriteStarter_var starter = - this->ciao_context_->get_connection_start_reader (); - if (::CORBA::is_nil (starter.in ()) || - ::CORBA::is_nil (writer.in ())) - { - ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Unable to start the reader\n"))); - return; - } - - writer->is_coherent_write (true); - starter->set_reader_properties (this->iterations_); - - ACE_DEBUG ((LM_DEBUG, "Start run <%d> with <%u> iterations\n", - this->run_, - this->iterations ())); - - CoherentWriteTestSeq write_many_seq (this->iterations_); - write_many_seq.length (this->iterations_); - for (int i = 1; i < this->iterations_ + 1; ++i) - { - CoherentWriteTest new_key; - new_key.symbol = CORBA::string_dup("KEY_1"); - new_key.iteration = ++total_iter; - write_many_seq[i-1] = new_key; - } - writer->write_many (write_many_seq); - ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Written <%u> keys uptil now\n"), - total_iter)); - ACE_OS::sleep (2); - starter->start_read (this->run_); - } - - // Component attributes and port operations. - - ::CCM_CoherentWriteRestarter_ptr - Sender_exec_i::get_restart_writer (void) - { - if ( ::CORBA::is_nil (this->ciao_restart_writer_.in ())) - { - restart_writer_exec_i *tmp = 0; - ACE_NEW_RETURN ( - tmp, - restart_writer_exec_i ( - this->ciao_context_.in (), - *this), - ::CCM_CoherentWriteRestarter::_nil ()); - - this->ciao_restart_writer_ = tmp; - } - - return - ::CCM_CoherentWriteRestarter::_duplicate ( - this->ciao_restart_writer_.in ()); - } - - ::CORBA::UShort - Sender_exec_i::iterations (void) - { - return this->iterations_; - } - - void - Sender_exec_i::iterations ( - const ::CORBA::UShort iterations) - { - this->iterations_ = iterations; - } - - // Operations from Components::SessionComponent. - - void - Sender_exec_i::set_session_context ( - ::Components::SessionContext_ptr ctx) - { - this->ciao_context_ = - ::CoherentWrite_Test::CCM_Sender_Context::_narrow (ctx); - - if ( ::CORBA::is_nil (this->ciao_context_.in ())) - { - throw ::CORBA::INTERNAL (); - } - } - - void - Sender_exec_i::configuration_complete (void) - { - /* Your code here. */ - } - - void - Sender_exec_i::ccm_activate (void) - { - try - { - this->reactor ()->notify (this->wh_); - } - catch (const ::CORBA::Exception& ex) - { - ex._tao_print_exception ("Exception caught:"); - ACE_ERROR ((LM_ERROR, - ACE_TEXT ("ERROR: GET_CONNECTION_START_READER : Exception caught\n"))); - } - catch (...) - { - ACE_ERROR ((LM_ERROR, - ACE_TEXT ("ERROR: GET_CONNECTION_START_READER : Unknown exception caught\n"))); - } - } - - void - Sender_exec_i::ccm_passivate (void) - { - /* Your code here. */ - } - - void - Sender_exec_i::ccm_remove (void) - { - /* Your code here. */ - } - - extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr - create_CoherentWrite_Test_Sender_Impl (void) - { - ::Components::EnterpriseComponent_ptr retval = - ::Components::EnterpriseComponent::_nil (); - - ACE_NEW_NORETURN ( - retval, - Sender_exec_i); - - return retval; - } -} diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.h b/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.h deleted file mode 100644 index cca68b9c6f8..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/Sender/CoherentWrite_Test_Sender_exec.h +++ /dev/null @@ -1,162 +0,0 @@ -// -*- C++ -*- -/** - * Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.3 - * TAO and the TAO IDL Compiler have been developed by: - * Center for Distributed Object Computing - * Washington University - * St. Louis, MO - * USA - * http://www.cs.wustl.edu/~schmidt/doc-center.html - * and - * Distributed Object Computing Laboratory - * University of California at Irvine - * Irvine, CA - * USA - * and - * Institute for Software Integrated Systems - * Vanderbilt University - * Nashville, TN - * USA - * http://www.isis.vanderbilt.edu/ - * - * Information about TAO is available at: - * http://www.dre.vanderbilt.edu/~schmidt/TAO.html - **/ -#ifndef CIAO_COHERENTWRITE_TEST_SENDER_EXEC_MVBFHL_H_ -#define CIAO_COHERENTWRITE_TEST_SENDER_EXEC_MVBFHL_H_ - -#include /**/ "ace/pre.h" - -#include "CoherentWrite_Test_SenderEC.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include /**/ "Sender_exec_export.h" -#include "tao/LocalObject.h" - -namespace CIAO_CoherentWrite_Test_Sender_Impl -{ - - class Sender_exec_i; - - /** - * WriteHandler - */ - - class WriteHandler : - public ACE_Event_Handler - { - public: - WriteHandler (Sender_exec_i &callback); - virtual int handle_exception (ACE_HANDLE fc = ACE_INVALID_HANDLE); - private: - Sender_exec_i &callback_; - }; - - /** - * Provider Executor Implementation Class: restart_writer_exec_i - */ - - class restart_writer_exec_i - : public virtual ::CCM_CoherentWriteRestarter, - public virtual ::CORBA::LocalObject - { - public: - restart_writer_exec_i ( - ::CoherentWrite_Test::CCM_Sender_Context_ptr ctx, - Sender_exec_i &callback); - virtual ~restart_writer_exec_i (void); - - //@{ - /** Operations and attributes from CoherentWriteRestarter. */ - - virtual - void restart_write (void); - //@} - - private: - ::CoherentWrite_Test::CCM_Sender_Context_var ciao_context_; - Sender_exec_i &callback_; - }; - - /** - * Component Executor Implementation Class: Sender_exec_i - */ - - class Sender_exec_i - : public virtual Sender_Exec, - public virtual ::CORBA::LocalObject - { - public: - Sender_exec_i (void); - virtual ~Sender_exec_i (void); - - //@{ - /** Supported operations and attributes. */ - - //@} - - //@{ - /** Component attributes and port operations. */ - - virtual ::CCM_CoherentWriteRestarter_ptr - get_restart_writer (void); - - virtual ::CORBA::UShort iterations (void); - - virtual void iterations (::CORBA::UShort iterations); - //@} - - //@{ - /** Operations from Components::SessionComponent. */ - virtual void set_session_context (::Components::SessionContext_ptr ctx); - virtual void configuration_complete (void); - virtual void ccm_activate (void); - virtual void ccm_passivate (void); - virtual void ccm_remove (void); - //@} - - //@{ - /** User defined public operations. */ - void start (void); - void restart (void); - - //@} - - private: - ::CoherentWrite_Test::CCM_Sender_Context_var ciao_context_; - - //@{ - /** Component attributes. */ - ::CCM_CoherentWriteRestarter_var ciao_restart_writer_; - - ::CORBA::UShort iterations_; - //@} - - //@{ - /** User defined members. */ - CORBA::UShort run_; - CORBA::ULong total_iter; - - WriteHandler *wh_; - - //@} - - //@{ - /** User defined private operations. */ - - //@} - - /// Get the ACE_Reactor - ACE_Reactor* reactor (void); - }; - - extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr - create_CoherentWrite_Test_Sender_Impl (void); -} - -#include /**/ "ace/post.h" - -#endif /* ifndef */ diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/CoherentWriter_Library.xml b/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/CoherentWriter_Library.xml deleted file mode 100644 index 20d72e051a0..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/CoherentWriter_Library.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - RELIABLE_RELIABILITY_QOS - - 10 - 0 - - - - TRANSIENT_DURABILITY_QOS - - - KEEP_ALL_HISTORY_QOS - - - - - - RELIABLE_RELIABILITY_QOS - - - KEEP_ALL_HISTORY_QOS - - - TRANSIENT_LOCAL_DURABILITY_QOS - - - - - INSTANCE_PRESENTATION_QOS - true - false - - - - \ No newline at end of file diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/Plan.cdp b/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/Plan.cdp deleted file mode 100644 index f6e3a9e655d..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/Plan.cdp +++ /dev/null @@ -1,462 +0,0 @@ - - - - CoherentWrite_Test_Depl_1 - - - ReceiverComponentImplementation - - - - - - component factory - - - tk_string - - - create_CoherentWrite_Test_Receiver_Impl - - - - - edu.vanderbilt.dre.CIAO.ServantEntrypoint - - - tk_string - - - create_CoherentWrite_Test_Receiver_Servant - - - - - edu.vanderbilt.dre.CIAO.ServantArtifact - - - tk_string - - - Receiver_svnt - - - - - edu.vanderbilt.dre.CIAO.ExecutorArtifact - - - tk_string - - - Receiver_exec - - - - - - - CoherentWrite_Test_StateConnectorImplementation - - - - - - component factory - - - tk_string - - - create_CoherentWriteTestConnector_DDS_State_Impl - - - - - edu.vanderbilt.dre.CIAO.ServantEntrypoint - - - tk_string - - - create_CoherentWriteTestConnector_DDS_State_Servant - - - - - edu.vanderbilt.dre.CIAO.ServantArtifact - - - tk_string - - - CoherentWrite_Test_Connector_svnt - - - - - edu.vanderbilt.dre.CIAO.ExecutorArtifact - - - tk_string - - - CoherentWrite_Test_Connector_exec - - - - - - - CoherentWrite_Test_EventConnectorImplementation - - - - - - component factory - - - tk_string - - - create_CoherentWriteTestConnector_DDS_Event_Impl - - - - - edu.vanderbilt.dre.CIAO.ServantEntrypoint - - - tk_string - - - create_CoherentWriteTestConnector_DDS_Event_Servant - - - - - edu.vanderbilt.dre.CIAO.ServantArtifact - - - tk_string - - - CoherentWrite_Test_Connector_svnt - - - - - edu.vanderbilt.dre.CIAO.ExecutorArtifact - - - tk_string - - - CoherentWrite_Test_Connector_exec - - - - - - - SenderComponentImplementation - - - - - - component factory - - - tk_string - - - create_CoherentWrite_Test_Sender_Impl - - - - - edu.vanderbilt.dre.CIAO.ServantEntrypoint - - - tk_string - - - create_CoherentWrite_Test_Sender_Servant - - - - - edu.vanderbilt.dre.CIAO.ServantArtifact - - - tk_string - - - Sender_svnt - - - - - edu.vanderbilt.dre.CIAO.ExecutorArtifact - - - tk_string - - - Sender_exec - - - - - - - ReceiverComponent - ReceiverNode - - - - - nr_runs - - - tk_ushort - - - 5 - - - - - - - CoherentWrite_Test_ConnectorComponent - SenderNode - - - - - qos_profile - - - tk_string - - - CoherentWriter_Library#CoherentWriterProfile - - - - - topic_name - - - tk_string - - - CoherentWrite_Test - - - - - - - CoherentWrite_Test_ReceiverConnector - ReceiverNode - - - - - qos_profile - - - tk_string - - - CoherentWriter_Library#CoherentWriterProfile - - - - - topic_name - - - tk_string - - - CoherentWrite_Test - - - - - - - SenderComponent - SenderNode - - - - - iterations - - - tk_ushort - - - 4 - - - - - - - info_out_data - - edu.dre.vanderbilt.DAnCE.ConnectionType - Local_Interface - - - info_out_data - false - SimplexReceptacle - - - - pull_observer_data - true - Facet - - - - - - info_out_fresh_data - - edu.dre.vanderbilt.DAnCE.ConnectionType - Local_Interface - - - info_out_fresh_data - false - SimplexReceptacle - - - - pull_observer_fresh_data - true - Facet - - - - - - writer_connection - - edu.dre.vanderbilt.DAnCE.ConnectionType - Local_Interface - - - info_write_data - false - SimplexReceptacle - - - - supplier_data - true - Facet - - - - - - reader_starter - - start_reader - false - SimplexReceptacle - - - - reader_start - true - Facet - - - - - - restart_writer - - writer_restart - false - SimplexReceptacle - - - - restart_writer - true - Facet - - - - - - Sender_exec - - - Sender_exec - - - Sender_svnt - - - Sender_svnt - - - Sender_stub - - - Sender_stub - - - CoherentWrite_Test_Connector_exec - - - CoherentWrite_Test_Connector_exec - - - CoherentWrite_Test_Connector_svnt - - - CoherentWrite_Test_Connector_svnt - - - CoherentWrite_Test_Connector_stub - - - CoherentWrite_Test_Connector_stub - - - Receiver_exec - - - Receiver_exec - - - Receiver_svnt - - - Receiver_svnt - - - Receiver_stub - - - Receiver_stub - - diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/USER_QOS_PROFILES.xml b/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/USER_QOS_PROFILES.xml deleted file mode 100644 index 7caa8986861..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/USER_QOS_PROFILES.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - RELIABLE_RELIABILITY_QOS - - 10 - 0 - - - - TRANSIENT_DURABILITY_QOS - - - KEEP_ALL_HISTORY_QOS - - - - 10 - - - - - - - RELIABLE_RELIABILITY_QOS - - - KEEP_ALL_HISTORY_QOS - - - TRANSIENT_LOCAL_DURABILITY_QOS - - - - - \ No newline at end of file diff --git a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/run_test.pl b/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/run_test.pl deleted file mode 100755 index 638d55cd247..00000000000 --- a/CIAO/connectors/dds4ccm/tests/CoherentWriter/descriptors/run_test.pl +++ /dev/null @@ -1,243 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# -*- perl -*- - -use lib "$ENV{'ACE_ROOT'}/bin"; -use PerlACE::TestTarget; - -$CIAO_ROOT = "$ENV{'CIAO_ROOT'}"; -$TAO_ROOT = "$ENV{'TAO_ROOT'}"; -$DANCE_ROOT = "$ENV{'DANCE_ROOT'}"; - -$daemons_running = 0; -$em_running = 0; -$ns_running = 0; - -$nr_daemon = 2; -@ports = ( 60001, 60002 ); -@iorbases = ( "NodeApp1.ior", "NodeApp2.ior" ); -@iorfiles = 0; -@nodenames = ( "SenderNode", "ReceiverNode" ); - -# ior files other than daemon -# ior files other than daemon -$ior_nsbase = "ns.ior"; -$ior_nsfile = 0; -$ior_embase = "EM.ior"; -$ior_emfile = 0; - -# Processes -$E = 0; -$EM = 0; -$NS = 0; -@DEAMONS = 0; - -# targets -@tg_daemons = 0; -$tg_naming = 0; -$tg_exe_man = 0; -$tg_executor = 0; - -$status = 0; -$cdp_file = "Plan.cdp"; - -sub create_targets { - # naming service - $tg_naming = PerlACE::TestTarget::create_target (1) || die "Create target for ns failed\n"; - $tg_naming->AddLibPath ('../lib'); - # daemon - for ($i = 0; $i < $nr_daemon; ++$i) { - $tg_daemons[$i] = PerlACE::TestTarget::create_target ($i+1) || die "Create target for daemon $i failed\n"; - $tg_daemons[$i]->AddLibPath ('../lib'); - } - # execution manager - $tg_exe_man = PerlACE::TestTarget::create_target (1) || die "Create target for EM failed\n"; - $tg_exe_man->AddLibPath ('../lib'); - # executor (plan_launcher) - $tg_executor = PerlACE::TestTarget::create_target (1) || die "Create target for executor failed\n"; - $tg_executor->AddLibPath ('../lib'); -} - -sub init_ior_files { - $ior_nsfile = $tg_naming->LocalFile ($ior_nsbase); - $ior_emfile = $tg_exe_man->LocalFile ($ior_embase); - for ($i = 0; $i < $nr_daemon; ++$i) { - $iorfiles[$i] = $tg_daemons[$i]->LocalFile ($iorbases[$i]); - } - delete_ior_files (); -} - -# Delete if there are any .ior files. -sub delete_ior_files { - for ($i = 0; $i < $nr_daemon; ++$i) { - $tg_daemons[$i]->DeleteFile ($iorbases[$i]); - } - $tg_naming->DeleteFile ($ior_nsbase); - $tg_exe_man->DeleteFile ($ior_embase); - for ($i = 0; $i < $nr_daemon; ++$i) { - $iorfiles[$i] = $tg_daemons[$i]->LocalFile ($iorbases[$i]); - } -} - -sub kill_node_daemon { - for ($i = 0; $i < $nr_daemon; ++$i) { - $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1); - } -} - -sub kill_open_processes { - if ($daemons_running == 1) { - kill_node_daemon (); - } - - if ($em_running == 1) { - $EM->Kill (); $EM->TimedWait (1); - } - - if ($ns_running == 1) { - $NS->Kill (); $NS->TimedWait (1); - } - # in case shutdown did not perform as expected - $tg_executor->KillAll ('dance_locality_manager'); -} - -sub run_node_daemons { - for ($i = 0; $i < $nr_daemon; ++$i) { - $iorbase = $iorbases[$i]; - $iorfile = $iorfiles[$i]; - $port = $ports[$i]; - $nodename = $nodenames[$i]; - $iiop = "iiop://localhost:$port"; - $node_app = $tg_daemons[$i]->GetArchDir("$DANCE_ROOT/bin/") . "dance_locality_manager"; - - $d_cmd = "$DANCE_ROOT/bin/dance_node_manager"; - $d_param = "-ORBEndpoint $iiop -s $node_app -n $nodename=$iorfile -t 30 --domain-nc corbaloc:rir:/NameService"; - - print "Run dance_node_manager with $d_param\n"; - - $DEAMONS[$i] = $tg_daemons[$i]->CreateProcess ($d_cmd, $d_param); - $DEAMONS[$i]->Spawn (); - - if ($tg_daemons[$i]->WaitForFileTimed($iorbase, - $tg_daemons[$i]->ProcessStartWaitInterval ()) == -1) { - print STDERR - "ERROR: The ior $iorfile file of node daemon $i could not be found\n"; - for (; $i >= 0; --$i) { - $DEAMONS[$i]->Kill (); $DEAMONS[$i]->TimedWait (1); - } - return -1; - } - } - return 0; -} - -create_targets (); -init_ior_files (); - -# Invoke naming service - -$NS = $tg_naming->CreateProcess ("$TAO_ROOT/orbsvcs/Naming_Service/tao_cosnaming", " -ORBEndpoint iiop://localhost:60003 -o $ior_nsfile"); - -$ns_status = $NS->Spawn (); - -if ($ns_status != 0) { - print STDERR "ERROR: Unable to execute the naming service\n"; - kill_open_processes (); - exit 1; -} - -print STDERR "Starting Naming Service with -ORBEndpoint iiop://localhost:60003 -o ns.ior\n"; - -if ($tg_naming->WaitForFileTimed ($ior_nsbase, - $tg_naming->ProcessStartWaitInterval ()) == -1) { - print STDERR "ERROR: cannot find naming service IOR file\n"; - $NS->Kill (); $NS->TimedWait (1); - exit 1; -} - -$ns_running = 1; -# Set up NamingService environment -$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService"; - -# Invoke node daemon. -print "Invoking node daemon\n"; -$status = run_node_daemons (); - -if ($status != 0) { - print STDERR "ERROR: Unable to execute the node daemon\n"; - kill_open_processes (); - exit 1; -} - -$daemons_running = 1; - -# Invoke execution manager. -print "Invoking execution manager (dance_execution_manager.exe) with -e$ior_emfile\n"; -$EM = $tg_exe_man->CreateProcess ("$DANCE_ROOT/bin/dance_execution_manager", - "-e$ior_emfile --domain-nc corbaloc:rir:/NameService"); -$em_status = $EM->Spawn (); - -if ($em_status != 0) { - print STDERR "ERROR: dance_execution_manager returned $em_status"; - exit 1; -} - -if ($tg_exe_man->WaitForFileTimed ($ior_embase, - $tg_exe_man->ProcessStartWaitInterval ()) == -1) { - print STDERR - "ERROR: The ior file of execution manager could not be found\n"; - kill_open_processes (); - exit 1; -} - -$em_running = 1; - -# Invoke executor - start the application -. -print "Invoking executor - launch the application -\n"; - -print "Start dance_plan_launcher.exe with -x $cdp_file -k file://$ior_emfile\n"; -$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher", - "-x $cdp_file -k file://$ior_emfile"); -$pl_status = $E->SpawnWaitKill (2 * $tg_executor->ProcessStartWaitInterval ()); - -if ($pl_status != 0) { - print STDERR "ERROR: dance_plan_launcher returned $pl_status\n"; - kill_open_processes (); - exit 1; -} - -for ($i = 0; $i < $nr_daemon; ++$i) { - if ($tg_daemons[$i]->WaitForFileTimed ($iorbases[$i], - $tg_daemons[$i]->ProcessStopWaitInterval ()) == -1) { - print STDERR "ERROR: The ior file of daemon $i could not be found\n"; - kill_open_processes (); - exit 1; - } -} - -print "Sleeping 30 seconds to allow task to complete\n"; -sleep (30); - -# Invoke executor - stop the application -. -print "Invoking executor - stop the application -\n"; -print "by running dance_plan_launcher.exe with -k file://$ior_emfile -x $cdp_file -s\n"; - -$E = $tg_executor->CreateProcess ("$DANCE_ROOT/bin/dance_plan_launcher", - "-k file://$ior_emfile -x $cdp_file -s"); -$pl_status = $E->SpawnWaitKill ($tg_executor->ProcessStartWaitInterval ()); - -if ($pl_status != 0) { - print STDERR "ERROR: dance_plan_launcher returned $pl_status\n"; - kill_open_processes (); - exit 1; -} - -print "Executor returned.\n"; -print "Shutting down rest of the processes.\n"; - -delete_ior_files (); -kill_open_processes (); - -exit $status; -- cgit v1.2.1