aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-11-26 14:55:41 +0100
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:27 +0100
commit366e3adf2dd6e33e161909ba5575f9475edd523b (patch)
treea3bf1627a42c5e124ca805b5ee307404cac4fba7 /lib/asn1/test/asn1_SUITE.erl
parent8d830a79d0a05e7e508ef6685f883a7a8eb158fd (diff)
downloadotp-366e3adf2dd6e33e161909ba5575f9475edd523b.tar.gz
otp-366e3adf2dd6e33e161909ba5575f9475edd523b.tar.bz2
otp-366e3adf2dd6e33e161909ba5575f9475edd523b.zip
Strengthen the constraint_equivalence test case
Instead of only compiling to the abstract format using 'abs', also compile to each of the back-ends.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE.erl')
-rw-r--r--lib/asn1/test/asn1_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl b/lib/asn1/test/asn1_SUITE.erl
index eb7c6e1d43..79925f9ddf 100644
--- a/lib/asn1/test/asn1_SUITE.erl
+++ b/lib/asn1/test/asn1_SUITE.erl
@@ -599,6 +599,14 @@ c_implicit_before_choice(Config, Rule, Opts) ->
[Rule, {outdir, CaseDir}|Opts]).
constraint_equivalence(Config) ->
+ constraint_equivalence_abs(Config),
+ test(Config, fun constraint_equivalence/3).
+
+constraint_equivalence(Config, Rule, Opts) ->
+ M = 'ConstraintEquivalence',
+ asn1_test_lib:compile(M, Config, [Rule|Opts]).
+
+constraint_equivalence_abs(Config) ->
DataDir = ?config(data_dir, Config),
CaseDir = ?config(case_dir, Config),
Asn1Spec = "ConstraintEquivalence",