summaryrefslogtreecommitdiff
path: root/modules/CIAO/tests/CIDL
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/tests/CIDL')
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/Basic.idl57
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/Basic_stub_export.h58
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/Basic_svnt_export.h58
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/CodeGen.cidl19
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/CodeGen.idl45
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/CodeGen.mpc120
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/CodeGen_exec_export.h58
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/CodeGen_stub_export.h58
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/CodeGen_svnt_export.h58
-rw-r--r--modules/CIAO/tests/CIDL/CodeGen/README40
10 files changed, 571 insertions, 0 deletions
diff --git a/modules/CIAO/tests/CIDL/CodeGen/Basic.idl b/modules/CIAO/tests/CIDL/CodeGen/Basic.idl
new file mode 100644
index 00000000000..2d8ab209e5a
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/Basic.idl
@@ -0,0 +1,57 @@
+// $Id$
+//=============================================================================
+/**
+ * @file Basic.idl
+ *
+ * Definition of events, and common interfaces used in the BasicSP module.
+ *
+ * @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
+ */
+//=============================================================================
+
+#ifndef CIAO_BASIC_IDL
+#define CIAO_BASIC_IDL
+
+#include <Components.idl>
+
+// @@NOTE: Do we need a pragma prefix. Anyway its broken now in TAO..
+
+module Extra
+{
+ exception NoReason {};
+ exception NoRhyme {};
+
+ interface Superfluous
+ {
+ attribute string useless_attr;
+ long superfluous_op (in string empty_arg)
+ raises (NoReason);
+ };
+
+ interface Supernumerary
+ {
+ void supernumerary_op (out string dummy_arg)
+ raises (NoRhyme, NoReason);
+ };
+};
+
+// #pragma prefix ""
+
+module Basic
+{
+ interface ReadData : Extra::Superfluous
+ {
+ string get_data ();
+ };
+
+ interface AnalyzeData
+ {
+ void perform_analysis (inout string data);
+ attribute boolean fine_tooth_comb;
+ };
+
+ eventtype TimeOut {};
+ eventtype DataAvailable {};
+};
+
+#endif /*CIAO_BASIC_IDL*/
diff --git a/modules/CIAO/tests/CIDL/CodeGen/Basic_stub_export.h b/modules/CIAO/tests/CIDL/CodeGen/Basic_stub_export.h
new file mode 100644
index 00000000000..c47d1d3f45f
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/Basic_stub_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s BASIC_STUB
+// ------------------------------
+#ifndef BASIC_STUB_EXPORT_H
+#define BASIC_STUB_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (BASIC_STUB_HAS_DLL)
+# define BASIC_STUB_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && BASIC_STUB_HAS_DLL */
+
+#if !defined (BASIC_STUB_HAS_DLL)
+# define BASIC_STUB_HAS_DLL 1
+#endif /* ! BASIC_STUB_HAS_DLL */
+
+#if defined (BASIC_STUB_HAS_DLL) && (BASIC_STUB_HAS_DLL == 1)
+# if defined (BASIC_STUB_BUILD_DLL)
+# define BASIC_STUB_Export ACE_Proper_Export_Flag
+# define BASIC_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define BASIC_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* BASIC_STUB_BUILD_DLL */
+# define BASIC_STUB_Export ACE_Proper_Import_Flag
+# define BASIC_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define BASIC_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* BASIC_STUB_BUILD_DLL */
+#else /* BASIC_STUB_HAS_DLL == 1 */
+# define BASIC_STUB_Export
+# define BASIC_STUB_SINGLETON_DECLARATION(T)
+# define BASIC_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* BASIC_STUB_HAS_DLL == 1 */
+
+// Set BASIC_STUB_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (BASIC_STUB_NTRACE)
+# if (ACE_NTRACE == 1)
+# define BASIC_STUB_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define BASIC_STUB_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !BASIC_STUB_NTRACE */
+
+#if (BASIC_STUB_NTRACE == 1)
+# define BASIC_STUB_TRACE(X)
+#else /* (BASIC_STUB_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define BASIC_STUB_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (BASIC_STUB_NTRACE == 1) */
+
+#endif /* BASIC_STUB_EXPORT_H */
+
+// End of auto generated file.
diff --git a/modules/CIAO/tests/CIDL/CodeGen/Basic_svnt_export.h b/modules/CIAO/tests/CIDL/CodeGen/Basic_svnt_export.h
new file mode 100644
index 00000000000..996ea3e3160
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/Basic_svnt_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s BASIC_SVNT
+// ------------------------------
+#ifndef BASIC_SVNT_EXPORT_H
+#define BASIC_SVNT_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (BASIC_SVNT_HAS_DLL)
+# define BASIC_SVNT_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && BASIC_SVNT_HAS_DLL */
+
+#if !defined (BASIC_SVNT_HAS_DLL)
+# define BASIC_SVNT_HAS_DLL 1
+#endif /* ! BASIC_SVNT_HAS_DLL */
+
+#if defined (BASIC_SVNT_HAS_DLL) && (BASIC_SVNT_HAS_DLL == 1)
+# if defined (BASIC_SVNT_BUILD_DLL)
+# define BASIC_SVNT_Export ACE_Proper_Export_Flag
+# define BASIC_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define BASIC_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* BASIC_SVNT_BUILD_DLL */
+# define BASIC_SVNT_Export ACE_Proper_Import_Flag
+# define BASIC_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define BASIC_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* BASIC_SVNT_BUILD_DLL */
+#else /* BASIC_SVNT_HAS_DLL == 1 */
+# define BASIC_SVNT_Export
+# define BASIC_SVNT_SINGLETON_DECLARATION(T)
+# define BASIC_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* BASIC_SVNT_HAS_DLL == 1 */
+
+// Set BASIC_SVNT_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (BASIC_SVNT_NTRACE)
+# if (ACE_NTRACE == 1)
+# define BASIC_SVNT_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define BASIC_SVNT_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !BASIC_SVNT_NTRACE */
+
+#if (BASIC_SVNT_NTRACE == 1)
+# define BASIC_SVNT_TRACE(X)
+#else /* (BASIC_SVNT_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define BASIC_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (BASIC_SVNT_NTRACE == 1) */
+
+#endif /* BASIC_SVNT_EXPORT_H */
+
+// End of auto generated file.
diff --git a/modules/CIAO/tests/CIDL/CodeGen/CodeGen.cidl b/modules/CIAO/tests/CIDL/CodeGen/CodeGen.cidl
new file mode 100644
index 00000000000..e8570e23f38
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/CodeGen.cidl
@@ -0,0 +1,19 @@
+//$Id$
+
+#ifndef CODEGEN_CIDL
+#define CODEGEN_CIDL
+
+#include "CodeGen.idl"
+
+composition session CodeGen_Impl
+{
+ home executor CodeGenHome_Exec
+ {
+ implements Basic::CodeGenHome;
+ manages CodeGen_Exec;
+ };
+};
+
+#endif /* CODEGEN_CIDL */
+
+
diff --git a/modules/CIAO/tests/CIDL/CodeGen/CodeGen.idl b/modules/CIAO/tests/CIDL/CodeGen/CodeGen.idl
new file mode 100644
index 00000000000..e14f5fde42e
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/CodeGen.idl
@@ -0,0 +1,45 @@
+//$Id$
+#include "Basic.idl"
+
+module Basic
+{
+ component Base supports Extra::Supernumerary, Extra::Superfluous
+ {
+ provides ReadData data_read;
+ attribute boolean is_not_necessary;
+ };
+
+ component CodeGen : Base
+ {
+ provides ReadData data_out;
+ uses ReadData data_in;
+ publishes DataAvailable out_avail;
+ consumes DataAvailable in_avail;
+ provides AnalyzeData data_crunch;
+
+ readonly attribute boolean is_necessary;
+ };
+
+ home BaseHome supports Extra::Supernumerary manages Base
+ {
+ void base_do_nothing ();
+
+ factory create_no_base (in long fake_id)
+ raises (Extra::NoRhyme);
+
+ finder find_no_base ();
+
+ readonly attribute boolean is_useful;
+ };
+
+ home CodeGenHome : BaseHome manages CodeGen
+ {
+ factory create_no_derived ();
+
+ finder find_no_derived ();
+
+ attribute boolean is_not_useful;
+
+ string do_nothing ();
+ };
+};
diff --git a/modules/CIAO/tests/CIDL/CodeGen/CodeGen.mpc b/modules/CIAO/tests/CIDL/CodeGen/CodeGen.mpc
new file mode 100644
index 00000000000..318631a32d2
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/CodeGen.mpc
@@ -0,0 +1,120 @@
+// $Id$
+
+project(CIDL_Basic_stub): ciao_client_dnc {
+ avoids += ace_for_tao
+ sharedname = CIDL_Basic_stub
+ idlflags += -Wb,stub_export_macro=BASIC_STUB_Export -Wb,stub_export_include=Basic_stub_export.h -Wb,skel_export_macro=BASIC_SVNT_Export -Wb,skel_export_include=Basic_svnt_export.h
+ dynamicflags = BASIC_STUB_BUILD_DLL
+
+ IDL_Files {
+ Basic.idl
+ }
+
+ Source_Files {
+ BasicC.cpp
+ }
+
+ Header_Files {
+ BasicC.h
+ Basic_stub_export.h
+ }
+}
+
+project(CIDL_Basic_svnt) : ciao_servant_dnc {
+ avoids += ace_for_tao
+ after += CIDL_Basic_stub
+ sharedname = CIDL_Basic_svnt
+ libs += CIDL_Basic_stub
+
+ idlflags += -Wb,stub_export_macro=BASIC_STUB_Export -Wb,stub_export_include=Basic_stub_export.h -Wb,skel_export_macro=BASIC_SVNT_Export -Wb,skel_export_include=Basic_svnt_export.h
+ dynamicflags = BASIC_SVNT_BUILD_DLL
+
+ IDL_Files {
+ Basic.idl
+ }
+
+ Source_Files {
+ BasicS.cpp
+ }
+
+ Header_Files {
+ BasicS.h
+ Basic_svnt_export.h
+ }
+}
+
+project(CodeGen_stub): ciao_client_dnc {
+ avoids += ace_for_tao
+ after += CIDL_Basic_stub
+ libs += CIDL_Basic_stub
+ sharedname = CodeGen_stub
+ idlflags += -Wb,stub_export_macro=CODEGEN_STUB_Export -Wb,stub_export_include=CodeGen_stub_export.h -Wb,skel_export_macro=CODEGEN_SVNT_Export -Wb,skel_export_include=CodeGen_svnt_export.h
+ dynamicflags = CODEGEN_STUB_BUILD_DLL
+
+ IDL_Files {
+ CodeGen.idl
+ }
+
+ Source_Files {
+ CodeGenC.cpp
+ }
+
+ Header_Files {
+ CodeGenC.h
+ CodeGen_stub_export.h
+ }
+}
+
+project(CodeGen_svnt) : ciao_servant_dnc {
+ avoids += ace_for_tao
+ after += CIDL_Basic_svnt CodeGen_stub
+ sharedname = CodeGen_svnt
+ libs += CodeGen_stub CIDL_Basic_stub CIDL_Basic_svnt
+ idlflags += -Wb,export_macro=CODEGEN_SVNT_Export -Wb,export_include=CodeGen_svnt_export.h
+ dynamicflags = CODEGEN_SVNT_BUILD_DLL
+ cidlflags -= --
+ cidlflags += --gen-exec-impl --exec-export-include CodeGen_exec_export.h --
+
+ CIDL_Files {
+ CodeGen.cidl
+ }
+
+ IDL_Files {
+ CodeGenE.idl
+ }
+
+ Source_Files {
+ CodeGenEC.cpp
+ CodeGenS.cpp
+ CodeGen_svnt.cpp
+ }
+
+ Header_Files {
+ CodeGenEC.h
+ CodeGenS.h
+ CodeGen_svnt.h
+ CodeGen_svnt_export.h
+ }
+}
+
+
+project(CodeGen_exec) : ciao_component_dnc {
+ avoids += ace_for_tao
+ after += CodeGen_svnt CodeGen_stub
+ sharedname = CodeGen_exec
+ libs += CodeGen_stub CodeGen_svnt CIDL_Basic_stub CIDL_Basic_svnt
+ dynamicflags = CODEGEN_EXEC_BUILD_DLL
+
+ IDL_Files {
+ }
+
+ Source_Files {
+ CodeGen_exec.cpp
+ }
+
+ Header_Files {
+ CodeGen_exec.h
+ CodeGen_exec_export.h
+ }
+}
+
diff --git a/modules/CIAO/tests/CIDL/CodeGen/CodeGen_exec_export.h b/modules/CIAO/tests/CIDL/CodeGen/CodeGen_exec_export.h
new file mode 100644
index 00000000000..545561f1278
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/CodeGen_exec_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s CODEGEN_EXEC
+// ------------------------------
+#ifndef CODEGEN_EXEC_EXPORT_H
+#define CODEGEN_EXEC_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (CODEGEN_EXEC_HAS_DLL)
+# define CODEGEN_EXEC_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && CODEGEN_EXEC_HAS_DLL */
+
+#if !defined (CODEGEN_EXEC_HAS_DLL)
+# define CODEGEN_EXEC_HAS_DLL 1
+#endif /* ! CODEGEN_EXEC_HAS_DLL */
+
+#if defined (CODEGEN_EXEC_HAS_DLL) && (CODEGEN_EXEC_HAS_DLL == 1)
+# if defined (CODEGEN_EXEC_BUILD_DLL)
+# define CODEGEN_EXEC_Export ACE_Proper_Export_Flag
+# define CODEGEN_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define CODEGEN_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* CODEGEN_EXEC_BUILD_DLL */
+# define CODEGEN_EXEC_Export ACE_Proper_Import_Flag
+# define CODEGEN_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define CODEGEN_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* CODEGEN_EXEC_BUILD_DLL */
+#else /* CODEGEN_EXEC_HAS_DLL == 1 */
+# define CODEGEN_EXEC_Export
+# define CODEGEN_EXEC_SINGLETON_DECLARATION(T)
+# define CODEGEN_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* CODEGEN_EXEC_HAS_DLL == 1 */
+
+// Set CODEGEN_EXEC_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (CODEGEN_EXEC_NTRACE)
+# if (ACE_NTRACE == 1)
+# define CODEGEN_EXEC_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define CODEGEN_EXEC_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !CODEGEN_EXEC_NTRACE */
+
+#if (CODEGEN_EXEC_NTRACE == 1)
+# define CODEGEN_EXEC_TRACE(X)
+#else /* (CODEGEN_EXEC_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define CODEGEN_EXEC_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (CODEGEN_EXEC_NTRACE == 1) */
+
+#endif /* CODEGEN_EXEC_EXPORT_H */
+
+// End of auto generated file.
diff --git a/modules/CIAO/tests/CIDL/CodeGen/CodeGen_stub_export.h b/modules/CIAO/tests/CIDL/CodeGen/CodeGen_stub_export.h
new file mode 100644
index 00000000000..bd48c6a60ab
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/CodeGen_stub_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s CODEGEN_STUB
+// ------------------------------
+#ifndef CODEGEN_STUB_EXPORT_H
+#define CODEGEN_STUB_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (CODEGEN_STUB_HAS_DLL)
+# define CODEGEN_STUB_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && CODEGEN_STUB_HAS_DLL */
+
+#if !defined (CODEGEN_STUB_HAS_DLL)
+# define CODEGEN_STUB_HAS_DLL 1
+#endif /* ! CODEGEN_STUB_HAS_DLL */
+
+#if defined (CODEGEN_STUB_HAS_DLL) && (CODEGEN_STUB_HAS_DLL == 1)
+# if defined (CODEGEN_STUB_BUILD_DLL)
+# define CODEGEN_STUB_Export ACE_Proper_Export_Flag
+# define CODEGEN_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define CODEGEN_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* CODEGEN_STUB_BUILD_DLL */
+# define CODEGEN_STUB_Export ACE_Proper_Import_Flag
+# define CODEGEN_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define CODEGEN_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* CODEGEN_STUB_BUILD_DLL */
+#else /* CODEGEN_STUB_HAS_DLL == 1 */
+# define CODEGEN_STUB_Export
+# define CODEGEN_STUB_SINGLETON_DECLARATION(T)
+# define CODEGEN_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* CODEGEN_STUB_HAS_DLL == 1 */
+
+// Set CODEGEN_STUB_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (CODEGEN_STUB_NTRACE)
+# if (ACE_NTRACE == 1)
+# define CODEGEN_STUB_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define CODEGEN_STUB_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !CODEGEN_STUB_NTRACE */
+
+#if (CODEGEN_STUB_NTRACE == 1)
+# define CODEGEN_STUB_TRACE(X)
+#else /* (CODEGEN_STUB_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define CODEGEN_STUB_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (CODEGEN_STUB_NTRACE == 1) */
+
+#endif /* CODEGEN_STUB_EXPORT_H */
+
+// End of auto generated file.
diff --git a/modules/CIAO/tests/CIDL/CodeGen/CodeGen_svnt_export.h b/modules/CIAO/tests/CIDL/CodeGen/CodeGen_svnt_export.h
new file mode 100644
index 00000000000..4c1f720b01f
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/CodeGen_svnt_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s CODEGEN_SVNT
+// ------------------------------
+#ifndef CODEGEN_SVNT_EXPORT_H
+#define CODEGEN_SVNT_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (CODEGEN_SVNT_HAS_DLL)
+# define CODEGEN_SVNT_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && CODEGEN_SVNT_HAS_DLL */
+
+#if !defined (CODEGEN_SVNT_HAS_DLL)
+# define CODEGEN_SVNT_HAS_DLL 1
+#endif /* ! CODEGEN_SVNT_HAS_DLL */
+
+#if defined (CODEGEN_SVNT_HAS_DLL) && (CODEGEN_SVNT_HAS_DLL == 1)
+# if defined (CODEGEN_SVNT_BUILD_DLL)
+# define CODEGEN_SVNT_Export ACE_Proper_Export_Flag
+# define CODEGEN_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define CODEGEN_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* CODEGEN_SVNT_BUILD_DLL */
+# define CODEGEN_SVNT_Export ACE_Proper_Import_Flag
+# define CODEGEN_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define CODEGEN_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* CODEGEN_SVNT_BUILD_DLL */
+#else /* CODEGEN_SVNT_HAS_DLL == 1 */
+# define CODEGEN_SVNT_Export
+# define CODEGEN_SVNT_SINGLETON_DECLARATION(T)
+# define CODEGEN_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* CODEGEN_SVNT_HAS_DLL == 1 */
+
+// Set CODEGEN_SVNT_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (CODEGEN_SVNT_NTRACE)
+# if (ACE_NTRACE == 1)
+# define CODEGEN_SVNT_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define CODEGEN_SVNT_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !CODEGEN_SVNT_NTRACE */
+
+#if (CODEGEN_SVNT_NTRACE == 1)
+# define CODEGEN_SVNT_TRACE(X)
+#else /* (CODEGEN_SVNT_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define CODEGEN_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (CODEGEN_SVNT_NTRACE == 1) */
+
+#endif /* CODEGEN_SVNT_EXPORT_H */
+
+// End of auto generated file.
diff --git a/modules/CIAO/tests/CIDL/CodeGen/README b/modules/CIAO/tests/CIDL/CodeGen/README
new file mode 100644
index 00000000000..da6e8f6ee90
--- /dev/null
+++ b/modules/CIAO/tests/CIDL/CodeGen/README
@@ -0,0 +1,40 @@
+
+Code Generation Test
+========================
+
+While the tests in CIAO_ROOT/tests/IDL3 target IDL3 support
+and IDL3-specific code generation in particular, the tests
+in CIAO_ROOT/CIDL target CIDL features and code generated
+from .cidl files. The test in this directory particularly
+stresses the code generation of the CIDL compiler. This
+code includes the executor mapping IDL, the servant code,
+and the executor implementation code. The latter is not
+fully generated of course, it's merely classes (one for
+each component executor, home executor, and facet executor)
+with the spec-defined operations filled in, but with the
+IDL-defined operations and attributes left blank.
+
+The IDL files in this test include most if not all of the
+IDL3 features that might cause a problem in code generation -
+catching operations and attributes for supported interfaces,
+operations and attributes for supported interface base
+classes, operations and attributes for inherited home
+classes, factory and finder operations for homes and those
+inherited from base homes - you get the idea. More stuff
+will be added as we think of it or a problem crops up.The object
+of this test is for all builds to complete successfully -
+there's no execution involved, since every build is a
+library, there's no executable to drive it.
+
+Please see the README file in CIAO_ROOT for info on how
+to set up builds with MPC. The builds in this test depend
+directly on CIAO_Container, CIAO_Servant and CIAO_Stub,
+and indirectly on everything those three depend on. There's
+a list in the above mentioned README file - to build those
+libraries, you'll of course need ACE (ACE_ROOT/ace), TAO
+(ACE_ROOT/TAO/tao) the IDL compiler (3 builds in
+ACE_ROOT/TAO/TAO_IDL) and gperf (ACE_ROOT/apps/gperf/src).
+
+Enjoy!
+
+Jeff \ No newline at end of file