~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/orber/test/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# %CopyrightBegin%
 
3
#
 
4
# Copyright Ericsson AB 1997-2011. All Rights Reserved.
 
5
#
 
6
# The contents of this file are subject to the Erlang Public License,
 
7
# Version 1.1, (the "License"); you may not use this file except in
 
8
# compliance with the License. You should have received a copy of the
 
9
# Erlang Public License along with this software. If not, it can be
 
10
# retrieved online at http://www.erlang.org/.
 
11
#
 
12
# Software distributed under the License is distributed on an "AS IS"
 
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
14
# the License for the specific language governing rights and limitations
 
15
# under the License.
 
16
#
 
17
# %CopyrightEnd%
 
18
#
 
19
#
 
20
include $(ERL_TOP)/make/target.mk
 
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
22
 
 
23
# ----------------------------------------------------
 
24
# Application version
 
25
# ----------------------------------------------------
 
26
include ../vsn.mk
 
27
VSN=$(ORBER_VSN)
 
28
# ----------------------------------------------------
 
29
# Release directory specification
 
30
# ----------------------------------------------------
 
31
RELSYSDIR = $(RELEASE_PATH)/orber_test
 
32
 
 
33
# ----------------------------------------------------
 
34
# Target Specs
 
35
# ----------------------------------------------------
 
36
TEST_SPEC_FILE = orber.spec
 
37
COVER_FILE = orber.cover
 
38
 
 
39
 
 
40
IDL_FILES = \
 
41
        orber_test.idl \
 
42
        iiop_test.idl \
 
43
        orber_test_server.idl
 
44
 
 
45
IDLOUTDIR = idl_output
 
46
 
 
47
MODULES =  \
 
48
        cdrcoding_11_SUITE \
 
49
        cdrcoding_10_SUITE \
 
50
        cdrcoding_12_SUITE \
 
51
        cdrlib_SUITE \
 
52
        corba_SUITE \
 
53
        iop_ior_11_SUITE \
 
54
        iop_ior_10_SUITE \
 
55
        iop_ior_12_SUITE \
 
56
        iiop_module_do_test_impl \
 
57
        iiop_module_test_impl \
 
58
        lname_SUITE \
 
59
        naming_context_SUITE \
 
60
        orber_SUITE \
 
61
        orber_test_server_impl \
 
62
        orber_test_timeout_server_impl \
 
63
        orber_test_lib \
 
64
        csiv2_SUITE \
 
65
        multi_ORB_SUITE \
 
66
        data_types_SUITE \
 
67
        tc_SUITE \
 
68
        generated_SUITE \
 
69
        orber_web_SUITE \
 
70
        interceptors_SUITE \
 
71
        orber_acl_SUITE \
 
72
        orber_firewall_ipv4_in_SUITE \
 
73
        orber_firewall_ipv6_in_SUITE \
 
74
        orber_firewall_ipv4_out_SUITE \
 
75
        orber_firewall_ipv6_out_SUITE \
 
76
        orber_nat_SUITE
 
77
 
 
78
GEN_MOD_ORBER = \
 
79
        oe_orber_test \
 
80
        Module_Except1 \
 
81
        Module_Except2 \
 
82
        Module_Except3 \
 
83
        Module_Except4 \
 
84
        Module_HEADER \
 
85
        Module_I1 \
 
86
        Module_I2 \
 
87
        Module_Struct0 \
 
88
        Module_Struct1 \
 
89
        Module_Struct2 \
 
90
        Module_Union \
 
91
        Module_Union1 \
 
92
        Module_Union2
 
93
 
 
94
GEN_HRL_ORBER = \
 
95
        oe_orber_test.hrl \
 
96
        Module.hrl \
 
97
        Module_I1.hrl \
 
98
        Module_I2.hrl
 
99
 
 
100
GEN_MOD_IIOP = \
 
101
        oe_iiop_test \
 
102
        iiop_module_Except1 \
 
103
        iiop_module_Struct1 \
 
104
        iiop_module_Union1 \
 
105
        iiop_module_do_test \
 
106
        iiop_module_test \
 
107
        iiop_module_test_retval
 
108
 
 
109
GEN_HRL_IIOP = \
 
110
        oe_iiop_test.hrl \
 
111
        iiop_module.hrl \
 
112
        iiop_module_do_test.hrl \
 
113
        iiop_module_test.hrl
 
114
 
 
115
GEN_MOD_TEST_SERVER = \
 
116
        oe_orber_test_server \
 
117
        orber_test_server \
 
118
        orber_test_server_ComplexUserDefinedException \
 
119
        orber_test_server_UserDefinedException \
 
120
        orber_test_server_struc \
 
121
        orber_test_server_uni \
 
122
        orber_test_server_uni_d \
 
123
        orber_test_timeout_server \
 
124
        orber_parent_inherrit \
 
125
        orber_test_server_rec_struct \
 
126
        orber_test_server_rec_struct_seq \
 
127
        orber_test_server_rec_union \
 
128
        orber_test_server_rec_union_seq
 
129
 
 
130
GEN_HRL_TEST_SERVER = \
 
131
        oe_orber_test_server.hrl \
 
132
        orber_test_server.hrl \
 
133
        orber_test_timeout_server.hrl
 
134
 
 
135
GEN_MODULES = $(GEN_MOD_ORBER) $(GEN_MOD_IIOP) \
 
136
        $(GEN_MOD_TEST_SERVER)
 
137
 
 
138
ERL_FILES = $(MODULES:%=%.erl)
 
139
 
 
140
HRL_FILES = 
 
141
 
 
142
GEN_HRL_FILES = $(GEN_HRL_ORBER) $(GEN_HRL_IIOP) \
 
143
        $(GEN_HRL_TEST_SERVER)
 
144
 
 
145
GEN_FILES = \
 
146
        $(GEN_HRL_FILES:%=$(IDLOUTDIR)/%) \
 
147
        $(GEN_MODULES:%=$(IDLOUTDIR)/%.erl) 
 
148
 
 
149
GEN_TARGET_FILES = $(GEN_MODULES:%=$(IDLOUTDIR)/%.$(EMULATOR))
 
150
 
 
151
SUITE_TARGET_FILES = $(MODULES:%=%.$(EMULATOR))
 
152
 
 
153
TARGET_FILES = \
 
154
        $(GEN_TARGET_FILES) \
 
155
        $(SUITE_TARGET_FILES)
 
156
 
 
157
# ----------------------------------------------------
 
158
# FLAGS
 
159
# ----------------------------------------------------
 
160
ERL_IDL_FLAGS += -pa $(ERL_TOP)/lib/orber/ebin -pa $(ERL_TOP)/lib/ic/ebin
 
161
 
 
162
ERL_COMPILE_FLAGS += $(ERL_IDL_FLAGS) \
 
163
        -pa $(ERL_TOP)/lib/test_server/ebin \
 
164
        -pa $(ERL_TOP)/lib/ic/ebin \
 
165
        -pa $(ERL_TOP)/lib/orber/ebin \
 
166
        -I$(ERL_TOP)/lib/orber \
 
167
        -I$(ERL_TOP)/lib/orber/test/$(IDLOUTDIR) \
 
168
        -I$(ERL_TOP)/lib/test_server/include
 
169
 
 
170
# ----------------------------------------------------
 
171
# Targets
 
172
# ----------------------------------------------------
 
173
tests debug opt: $(TARGET_FILES)
 
174
 
 
175
clean:
 
176
        rm -f idl_output/*
 
177
        rm -f $(TARGET_FILES) 
 
178
        rm -f errs core *~
 
179
 
 
180
 
 
181
docs:
 
182
 
 
183
# ----------------------------------------------------
 
184
# Special Targets
 
185
# ----------------------------------------------------
 
186
 
 
187
#
 
188
# Each IDL file produces many target files so no pattern
 
189
# rule can be used.
 
190
#
 
191
TGT_ORBER = \
 
192
        $(GEN_HRL_ORBER:%=$(IDLOUTDIR)/%) \
 
193
        $(GEN_MOD_ORBER:%=$(IDLOUTDIR)/%.erl)
 
194
TGT_IIOP = \
 
195
        $(GEN_HRL_IIOP:%=$(IDLOUTDIR)/%) \
 
196
        $(GEN_MOD_IIOP:%=$(IDLOUTDIR)/%.erl)
 
197
 
 
198
TGT_TEST_SERVER = \
 
199
        $(GEN_HRL_TEST_SERVER:%=$(IDLOUTDIR)/%) \
 
200
        $(GEN_MOD_TEST_SERVER:%=$(IDLOUTDIR)/%.erl)
 
201
 
 
202
$(TGT_ORBER): orber_test.idl
 
203
        erlc $(ERL_IDL_FLAGS) -o$(IDLOUTDIR) orber_test.idl
 
204
 
 
205
$(TGT_IIOP): iiop_test.idl
 
206
        erlc $(ERL_IDL_FLAGS) -o$(IDLOUTDIR) \
 
207
                +'{preproc_flags,"-I../COSS/CosNaming"}' iiop_test.idl
 
208
 
 
209
$(TGT_TEST_SERVER): orber_test_server.idl
 
210
        erlc $(ERL_IDL_FLAGS) -o$(IDLOUTDIR) \
 
211
        +'{cfgfile,"orber_test_server.cfg"}' orber_test_server.idl
 
212
 
 
213
# ----------------------------------------------------
 
214
# Release Targets
 
215
# ---------------------------------------------------- 
 
216
# We don't copy generated intermediate erlang and hrl files
 
217
 
 
218
include $(ERL_TOP)/make/otp_release_targets.mk
 
219
 
 
220
release_spec: 
 
221
 
 
222
release_docs_spec:
 
223
 
 
224
release_tests_spec: tests
 
225
        $(INSTALL_DIR) $(RELSYSDIR)
 
226
        $(INSTALL_DATA) $(IDL_FILES)  $(TEST_SPEC_FILE) $(COVER_FILE) \
 
227
                $(ERL_FILES) $(RELSYSDIR)
 
228
        $(INSTALL_DATA) $(SUITE_TARGET_FILES) $(RELSYSDIR)
 
229
        chmod -f -R u+w $(RELSYSDIR)
 
230
        $(INSTALL_DIR) $(RELSYSDIR)/$(IDLOUTDIR)
 
231
        $(INSTALL_DATA) $(GEN_TARGET_FILES) $(GEN_FILES) \
 
232
                $(RELSYSDIR)/$(IDLOUTDIR)
 
233