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

« back to all changes in this revision

Viewing changes to lib/asn1/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
# Target Specs
 
25
# ----------------------------------------------------
 
26
 
 
27
MODULES= \
 
28
        h323test \
 
29
        choice_extension \
 
30
        ber_decode_error \
 
31
        testExternal \
 
32
        testPrim \
 
33
        testPrimStrings \
 
34
        testCompactBitString \
 
35
        testPrimExternal \
 
36
        testChoPrim \
 
37
        testChoExtension \
 
38
        testChoExternal \
 
39
        testChoOptional \
 
40
        testChoOptionalImplicitTag \
 
41
        testChoRecursive \
 
42
        testChoTypeRefCho \
 
43
        testChoTypeRefPrim \
 
44
        testChoTypeRefSeq \
 
45
        testChoTypeRefSet \
 
46
        testConstraints \
 
47
        testDef \
 
48
        testOpt \
 
49
        testSeqDefault \
 
50
        testSeqExtension \
 
51
        testSeqExternal \
 
52
        testSeqOptional \
 
53
        testSeq2738 \
 
54
        testSeqPrim \
 
55
        testSeqTag \
 
56
        testSeqTypeRefCho \
 
57
        testSeqTypeRefPrim \
 
58
        testSeqTypeRefSeq \
 
59
        testSeqTypeRefSet \
 
60
        testSeqIndefinite \
 
61
        testSeqOf \
 
62
        testSeqOfIndefinite \
 
63
        testSeqOfCho \
 
64
        testSeqOfExternal \
 
65
        testSeqOfTag \
 
66
        testSetDefault \
 
67
        testSetExtension \
 
68
        testSetExternal \
 
69
        testSetOptional \
 
70
        testSetPrim \
 
71
        testSetTag \
 
72
        testSetTypeRefCho \
 
73
        testSetTypeRefPrim \
 
74
        testSetTypeRefSeq \
 
75
        testSetTypeRefSet \
 
76
        testSetIndefinite \
 
77
        testChoiceIndefinite \
 
78
        testSetOf \
 
79
        testSetOfCho \
 
80
        testSetOfExternal \
 
81
        testSetOfTag \
 
82
        testEnumExt \
 
83
        testInfObjectClass \
 
84
        testInfObj \
 
85
        testParameterizedInfObj \
 
86
        testMergeCompile \
 
87
        testDeepTConstr \
 
88
        testTimer \
 
89
        testRANAP \
 
90
        testMegaco \
 
91
        testMvrasn6 \
 
92
        testSeqSetDefaultVal \
 
93
        testParamBasic \
 
94
        testContextSwitchingTypes \
 
95
        testTypeValueNotation \
 
96
        testOpenTypeImplicitTag \
 
97
        testROSE \
 
98
        testINSTANCE_OF \
 
99
        test_partial_incomplete_decode \
 
100
        testDER \
 
101
        test_selective_decode \
 
102
        test_special_decode_performance \
 
103
        testTCAP \
 
104
        testSSLspecs \
 
105
        test_driver_load \
 
106
        testSelectionTypes \
 
107
        test_undecoded_rest \
 
108
        test_inline \
 
109
        testTcapsystem \
 
110
        testNBAPsystem \
 
111
        test_bad_values \
 
112
        test_compile_options \
 
113
        testDoubleEllipses \
 
114
        test_modified_x420 \
 
115
        testX420 \
 
116
        test_x691 \
 
117
        asn1_test_lib \
 
118
        asn1_app_test \
 
119
        asn1_appup_test \
 
120
        asn1_wrapper \
 
121
        asn1_SUITE \
 
122
        asn1_bin_SUITE \
 
123
        asn1_bin_v2_SUITE
 
124
 
 
125
SUITE= asn1_SUITE.erl
 
126
SUITE_BIN= asn1_bin_SUITE.erl
 
127
SUITE_BIN_V2= asn1_bin_v2_SUITE.erl
 
128
SUITE_SRC= asn1_SUITE.erl.src
 
129
SUITE_BIN_SRC= asn1_bin_SUITE.erl.src
 
130
SUITE_BIN_V2_SRC= asn1_bin_SUITE.erl.src
 
131
 
 
132
ERL_FILES= $(MODULES:%=%.erl)
 
133
 
 
134
HRL_FILES= External.hrl
 
135
 
 
136
EMAKEFILE=Emakefile
 
137
 
 
138
# ----------------------------------------------------
 
139
# Release directory specification
 
140
# ----------------------------------------------------
 
141
RELSYSDIR = $(RELEASE_PATH)/asn1_test
 
142
 
 
143
# ----------------------------------------------------
 
144
# FLAGS
 
145
# ----------------------------------------------------
 
146
ERL_COMPILE_FLAGS += +warnings_as_errors
 
147
EBIN = .
 
148
 
 
149
# ----------------------------------------------------
 
150
# Targets
 
151
# ----------------------------------------------------
 
152
 
 
153
$(EMAKEFILE): $(ERL_FILES) $(HRL_FILES)
 
154
        $(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) $(MODULES) $(ERL_FILES) >$(EMAKEFILE)
 
155
 
 
156
tests debug opt: $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2) $(EMAKEFILE)
 
157
 
 
158
clean:
 
159
        rm -f $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2)
 
160
        rm -f core
 
161
 
 
162
docs:
 
163
 
 
164
#-----------------------------------------------------
 
165
# Special Targets
 
166
#-----------------------------------------------------
 
167
$(SUITE): $(SUITE_SRC)
 
168
        sed -e 's;%BIN%;;' -e 's;%PER%;per;' -e 's;%BER%;ber;'  $< > $@
 
169
        cat asn1_common_SUITE.erl.src >> $@
 
170
        cat asn1_particular_SUITE.erl.src >> $@
 
171
 
 
172
 
 
173
$(SUITE_BIN): $(SUITE_SRC)
 
174
        sed -e 's;%BIN%;bin_;' -e 's;%PER%;per_bin;' -e 's;%BER%;ber_bin;' $< > $@
 
175
        echo "common() -> []." >> $@
 
176
        cat asn1_bin_particular_SUITE.erl.src >> $@
 
177
 
 
178
$(SUITE_BIN_V2): $(SUITE_SRC)
 
179
        sed -e 's;%BIN%;bin_v2_;' -e 's;%PER%;per_bin;' -e 's;%BER%;ber_bin_v2;' $< > $@
 
180
        echo "common() -> []." >> $@
 
181
        cat asn1_bin_v2_particular_SUITE.erl.src >> $@
 
182
 
 
183
# ----------------------------------------------------
 
184
# Release Target
 
185
# ---------------------------------------------------- 
 
186
include $(ERL_TOP)/make/otp_release_targets.mk
 
187
 
 
188
release_spec: opt
 
189
 
 
190
release_tests_spec: opt
 
191
        $(INSTALL_DIR) $(RELSYSDIR)
 
192
        $(INSTALL_DIR) $(RELSYSDIR)/asn1_SUITE_data
 
193
        $(INSTALL_DIR) $(RELSYSDIR)/asn1_bin_SUITE_data
 
194
        $(INSTALL_DIR) $(RELSYSDIR)/asn1_bin_v2_SUITE_data
 
195
        $(INSTALL_DATA)  $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)
 
196
        $(INSTALL_DATA) asn1.spec asn1.cover $(INSTALL_PROGS) $(RELSYSDIR)
 
197
        chmod -f -R u+w $(RELSYSDIR)
 
198
        cd asn1_SUITE_data; tar cfh $(RELSYSDIR)/asn1_SUITE_data.tar *
 
199
        cd $(RELSYSDIR)/asn1_SUITE_data; tar xf $(RELSYSDIR)/asn1_SUITE_data.tar
 
200
        cd $(RELSYSDIR)/asn1_bin_SUITE_data; tar xf $(RELSYSDIR)/asn1_SUITE_data.tar
 
201
        cd $(RELSYSDIR)/asn1_bin_v2_SUITE_data; tar xf $(RELSYSDIR)/asn1_SUITE_data.tar
 
202
        rm $(RELSYSDIR)/asn1_SUITE_data.tar
 
203
 
 
204
release_docs_spec: