4
# Copyright Ericsson AB 1997-2011. All Rights Reserved.
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/.
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
20
include $(ERL_TOP)/make/target.mk
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
23
# ----------------------------------------------------
25
# ----------------------------------------------------
34
testCompactBitString \
40
testChoOptionalImplicitTag \
77
testChoiceIndefinite \
85
testParameterizedInfObj \
92
testSeqSetDefaultVal \
94
testContextSwitchingTypes \
95
testTypeValueNotation \
96
testOpenTypeImplicitTag \
99
test_partial_incomplete_decode \
101
test_selective_decode \
102
test_special_decode_performance \
107
test_undecoded_rest \
112
test_compile_options \
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
132
ERL_FILES= $(MODULES:%=%.erl)
134
HRL_FILES= External.hrl
138
# ----------------------------------------------------
139
# Release directory specification
140
# ----------------------------------------------------
141
RELSYSDIR = $(RELEASE_PATH)/asn1_test
143
# ----------------------------------------------------
145
# ----------------------------------------------------
146
ERL_COMPILE_FLAGS += +warnings_as_errors
149
# ----------------------------------------------------
151
# ----------------------------------------------------
153
$(EMAKEFILE): $(ERL_FILES) $(HRL_FILES)
154
$(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) $(MODULES) $(ERL_FILES) >$(EMAKEFILE)
156
tests debug opt: $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2) $(EMAKEFILE)
159
rm -f $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2)
164
#-----------------------------------------------------
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 >> $@
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 >> $@
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 >> $@
183
# ----------------------------------------------------
185
# ----------------------------------------------------
186
include $(ERL_TOP)/make/otp_release_targets.mk
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