~statik/ubuntu/maverick/erlang/erlang-merge-testing

« back to all changes in this revision

Viewing changes to lib/megaco/test/Makefile

  • Committer: Elliot Murphy
  • Date: 2010-06-08 03:55:44 UTC
  • mfrom: (3.5.6 squeeze)
  • Revision ID: elliot@elliotmurphy.com-20100608035544-dd8zh2swk7jr5rz2
* Merge with Debian unstable; remaining Ubuntu changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to. (LP #438365)
  - 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.
* Added missing symlinks to /usr/include for a few new header files.
* Fixed generation of ${erlang-base:Depends} and ${erlang-x11:Depends}
  substitution variables.
* Added a fix for a re:compile/2 crash on a long regular expression.
* Changed urgency to medium as the change fixes a security bug.
* Manpages in section 1 are needed even if only arch-dependent packages are
  built. So, re-enabled them.
* Fixed HiPE architecture recognition for powerpc Debian architecture.
* Moved xsltproc and fop to build-depends-indep and do not build
  documentation if only architecture-specific packages are built.
* Refreshed all patches.
* Made Emacs look in man5 and man7 for Erlang manpages and added code
  skeleton files to erlang-mode package.
* New upstream release.
* Moved manpages from incorrect sections 4 and 6 to correct 5 and 7
  (closes: #498492).
* Made manpages regexp in Emacs mode match only 3erl pages in section 3.
* Removed docb_gen script which is no longer needed to build manpages.
* Added erlang-doc package which contains documentation in HTML and PDF
  formats. This package replaces erlang-doc-html package and it's easier
  to synchronize it with the main Erlang packages as it's built from
  a single source package (closes: #558451).
* Removed RPATH from ssl and crypto application binaries as required by
  Debian policy.
* Added libwxgtk2.4-dev and libwxgtk2.6-dev to build conflicts.
* Added a few dpendencies for erlang-dialyzer, erlang-et, erlang-observer
  and erlang-examples packages which now call functions from more modules
  than in 1:13.b.3.
* Added a workaround which disables vfork() for hppa architecture
  (closes: #562218).
* Strictened check for JDK 1.5 adding a call to String(int[], int, int)
  because GCJ 4.4 doesn't implement it and OpenJDK isn't available for all
  architectures.
* Fixed erlang-manpages package section.
* Made erlang-depends add only substvars which are requested in
  debian/control file. This minimizes number of warnings from dh_gencontrol.
  Also, improved descriptions of the functions in erlang-depends escript.
* Added erlang-erl-docgen package to erlang-nox dependencies.
* Made dummy packages erlang-nox and erlang-x11 architecture all.
* Cleaned up working with custom substitution variables in debian/rules.
* Reorganized debian/rules to ensure that manpages arent built twice, and
  aren't built at all if only architecture-dependent packages are requested.
* Fixed project links in README.Debian.
* Added a new package erlang-jinterface which provides tools for
  communication of Java programs with Erlang processes. This adds build
  depandency on default-jdk and as a result enables Java module for IDL
  compiler.
* Bumped standards version to 3.8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
2
2
# %CopyrightBegin%
3
 
4
 
# Copyright Ericsson AB 1999-2009. All Rights Reserved.
5
 
 
3
#
 
4
# Copyright Ericsson AB 1999-2010. All Rights Reserved.
 
5
#
6
6
# The contents of this file are subject to the Erlang Public License,
7
7
# Version 1.1, (the "License"); you may not use this file except in
8
8
# compliance with the License. You should have received a copy of the
9
9
# Erlang Public License along with this software. If not, it can be
10
10
# retrieved online at http://www.erlang.org/.
11
 
 
11
#
12
12
# Software distributed under the License is distributed on an "AS IS"
13
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
# the License for the specific language governing rights and limitations
15
15
# under the License.
16
 
 
16
#
17
17
# %CopyrightEnd%
18
18
 
19
19
include $(ERL_TOP)/make/target.mk
52
52
 
53
53
include modules.mk
54
54
 
 
55
EBIN = .
 
56
 
55
57
HRL_FILES = megaco_test_lib.hrl
56
58
 
57
59
ERL_FILES = $(MODULES:%=%.erl)
58
60
 
 
61
SOURCE = $(HRL_FILES) $(ERL_FILES) 
 
62
 
59
63
TARGET_FILES = $(MODULES:%=%.$(EMULATOR))
60
64
 
61
 
COVER_SPEC_FILE = megaco.cover
62
 
 
63
65
APP_CASES   = app appup
64
66
 
65
67
CODEC_CASES = codec1 codec2 codec3a codec3b codec3c
71
73
ALL_CASES   = $(APP_CASES) $(CODEC_CASES) $(MISC_CASES) $(OP_CASES)
72
74
 
73
75
 
 
76
EMAKEFILE  = Emakefile
 
77
MAKE_EMAKE = $(wildcard $(ERL_TOP)/make/make_emakefile)
 
78
 
 
79
ifeq ($(MAKE_EMAKE),)
 
80
BUILDTARGET   = $(TARGET_FILES)
 
81
RELTEST_FILES = $(TEST_SPEC_FILE) $(COVER_SPEC_FILE) $(SOURCE)
 
82
else
 
83
BUILDTARGET   = emakebuild
 
84
RELTEST_FILES = $(EMAKEFILE) $(TEST_SPEC_FILE) $(COVER_SPEC_FILE) $(SOURCE)
 
85
endif
 
86
 
 
87
 
74
88
# ----------------------------------------------------
75
89
# FLAGS
76
90
# ----------------------------------------------------
128
142
# Targets
129
143
# ----------------------------------------------------
130
144
 
131
 
tests debug opt: $(TARGET_FILES)
 
145
tests debug opt: $(BUILDTARGET)
 
146
 
 
147
targets: $(TARGET_FILES)
 
148
 
 
149
.PHONY: emakebuild
 
150
 
 
151
emakebuild: $(EMAKEFILE)
 
152
 
 
153
$(EMAKEFILE): 
 
154
        $(MAKE_EMAKE) $(ERL_COMPILE_FLAGS) -o$(EBIN) '*_SUITE_make' | grep -v Warning > $(EMAKEFILE)
 
155
        $(MAKE_EMAKE) $(ERL_COMPILE_FLAGS) -o$(EBIN) $(MODULES) | grep -v Warning >> $(EMAKEFILE)
132
156
 
133
157
clean:
 
158
        rm -f $(EMAKEFILE)
134
159
        rm -f $(TARGET_FILES) 
135
160
        rm -f errs core *~
136
161
 
137
162
docs:
138
163
 
139
164
info:
 
165
        @echo "MAKE_EMAKE        = $(MAKE_EMAKE)"
 
166
        @echo "EMAKEFILE         = $(EMAKEFILE)"
 
167
        @echo "BUILDTARGET       = $(BUILDTARGET)"
 
168
        @echo ""
140
169
        @echo "ERL_COMPILE_FLAGS = $(ERL_COMPILE_FLAGS)"
141
170
        @echo "ERL  = $(ERL)"
142
171
        @echo "MERL = $(MERL)"
143
172
        @echo ""
 
173
        @echo "ARGS = $(ARGS)"
 
174
        @echo ""
 
175
        @echo "HRL_FILES    = $(HRL_FILES)"
 
176
        @echo "ERL_FILES    = $(ERL_FILES)"
 
177
        @echo "TARGET_FILES = $(TARGET_FILES)"
 
178
        @echo ""
 
179
 
 
180
help:
 
181
        @echo ""
 
182
        @echo "This Makefile controls the test of the $(APPLICATION) application. "
 
183
        @echo ""
 
184
        @echo "There are two separate ways to perform the test of $(APPLICATION)."
 
185
        @echo ""
 
186
        @echo "  a) Run the official OTP test-server (which we do not describe here)"
 
187
        @echo ""
 
188
        @echo "  b) Run the test-server provided with this application. "
 
189
        @echo "     There are a number of targets to run the entire or parts"
 
190
        @echo "     of this applications ($(APPLICATION)) test-suite"
 
191
        @echo ""
 
192
        @echo "Targets:"
 
193
        @echo ""
 
194
        @echo "    help"
 
195
        @echo "      Print this info"
 
196
        @echo ""
 
197
        @echo "    info"
 
198
        @echo "      Prints various environment variables. "
 
199
        @echo "      May be useful when debugging the Makefile. "
 
200
        @echo ""
 
201
        @echo "    tests | debug | opt "
 
202
        @echo "      Compile all test-code. "
 
203
        @echo ""
 
204
        @echo "    clean "
 
205
        @echo "      Remove all targets. "
 
206
        @echo ""
 
207
        @echo "    test"
 
208
        @echo "      Run the entire $(APPLICATION) test-suite. "
 
209
        @echo ""
 
210
        @echo "    app"
 
211
        @echo "      Run the $(APPLICATION) application sub-test-suite. "
 
212
        @echo ""
 
213
        @echo "    appup"
 
214
        @echo "      Run the $(APPLICATION) application upgrade (appup) sub-test-suite. "
 
215
        @echo ""
 
216
        @echo "    conf"
 
217
        @echo "      Run the $(APPLICATION) config sub-test-suite. "
 
218
        @echo "      Checks various aspects of the megaco configuration. "
 
219
        @echo ""
 
220
        @echo "    codec"
 
221
        @echo "      Run the $(APPLICATION) codec sub-test-suite(s). "
 
222
        @echo ""
 
223
        @echo "    flex"
 
224
        @echo "      Run the $(APPLICATION) flex-scanner sub-test-suite. "
 
225
        @echo "      This sub-test-suite does not test the function of the scanner itself"
 
226
        @echo "      (that is done by the codec sub-test-suite(s)), instead, this"
 
227
        @echo "      sub-test-suite tests the *handling* of the flex-scanner linked-in driver."
 
228
        @echo ""
 
229
        @echo "    dm"
 
230
        @echo "      Run the $(APPLICATION) digit-map sub-test-suite. "
 
231
        @echo ""
 
232
        @echo "    tid"
 
233
        @echo "      Run the $(APPLICATION) binary term-id sub-test-suite. "
 
234
        @echo ""
 
235
        @echo "    sdp"
 
236
        @echo "      Run the $(APPLICATION) SDP sub-test-suite. "
 
237
        @echo ""
 
238
        @echo "    action"
 
239
        @echo "      Run the $(APPLICATION) actions sub-test-suite. "
 
240
        @echo "      Actions are building blocks of a $(APPLICATION) message. "
 
241
        @echo "      This sub-test-suite attempts to perform tests related to this, "
 
242
        @echo "      using all the supported codecs. "
 
243
        @echo ""
 
244
        @echo "    mess"
 
245
        @echo "      Run the $(APPLICATION) message sub-test-suite"
 
246
        @echo "      This is basic message processing test-cases"
 
247
        @echo ""
 
248
        @echo "    trans"
 
249
        @echo "      Run the $(APPLICATION) transaction sender sub-test-suite"
 
250
        @echo "      This is basic message processing for a megaco application "
 
251
        @echo "      configured to be using the transaction sender. "
 
252
        @echo ""
 
253
        @echo "    mib"
 
254
        @echo "      Run the $(APPLICATION) $(APPLICATION)-mib sub-test-suite"
 
255
        @echo "      Tests related to the basic support for the $(APPLICATION) mib"
 
256
        @echo "      primarily counters"
 
257
        @echo ""
 
258
        @echo "    mreq"
 
259
        @echo "      Run the $(APPLICATION) mreq sub-test-suite"
 
260
        @echo "      This is yet another sub-test-suite with message processing "
 
261
        @echo "      test-cases. "
 
262
        @echo ""
 
263
        @echo "    pending"
 
264
        @echo "      Run the $(APPLICATION) pending-limit sub-test-suite"
 
265
        @echo ""
 
266
        @echo "    udp"
 
267
        @echo "      Run the $(APPLICATION) UDP transport component sub-test-suite"
 
268
        @echo ""
 
269
        @echo "    tcp"
 
270
        @echo "      Run the $(APPLICATION) TCP transport component sub-test-suite"
 
271
        @echo ""
 
272
        @echo "    load"
 
273
        @echo "      Run the $(APPLICATION) load sub-test-suite"
 
274
        @echo "      This sub-test-suite performs load test test-cases using "
 
275
        @echo "      \"high\" message traffic. "
 
276
        @echo ""
 
277
        @echo "    segment"
 
278
        @echo "      Run the $(APPLICATION) message segmentation sub-test-suite"
 
279
        @echo "      If using the UDP transport protocol, it is possible to send "
 
280
        @echo "      and receive segmented megaco replies (in version 3 of the protocol) "
 
281
        @echo "      This sub-test-suite tests this feature. "
 
282
        @echo ""
 
283
        @echo "    timer"
 
284
        @echo "      Run the $(APPLICATION) timer sub-test-suite"
 
285
        @echo "      Basic test-suite for the megaco-timers"
 
286
        @echo ""
 
287
        @echo "    ex"
 
288
        @echo "      Run the $(APPLICATION) example sub-test-suite"
 
289
        @echo "      The $(APPLICATION) application contains one example,"
 
290
        @echo "      this is a sub-test-suite based on the code,"
 
291
        @echo ""
144
292
 
145
293
 
146
294
# ----------------------------------------------------
195
343
 
196
344
make: targets
197
345
 
198
 
targets: $(TARGET_FILES)
199
 
 
200
346
test: make
201
347
        $(MERL) $(ARGS) -sname megaco_test $(ERL_PATH) \
202
348
            -s megaco_test_lib t $(SUITE) \
603
749
 
604
750
release_tests_spec: tests
605
751
        $(INSTALL_DIR)  $(RELSYSDIR)
606
 
        $(INSTALL_DATA) $(TEST_SPEC_FILE) $(COVER_SPEC_FILE) \
607
 
                        $(HRL_FILES) $(ERL_FILES) \
608
 
                        $(RELSYSDIR)
609
 
        $(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)
 
752
        $(INSTALL_DATA) $(RELTEST_FILES) $(RELSYSDIR)
 
753
#       $(INSTALL_DATA) $(TEST_SPEC_FILE) $(COVER_SPEC_FILE) \
 
754
#                        $(HRL_FILES) $(ERL_FILES) \
 
755
#                        $(RELSYSDIR)
 
756
#
610
757
        chmod -f -R u+w $(RELSYSDIR)
611
758