aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_compiler_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-05-29 08:18:29 +0200
committerAnders Svensson <[email protected]>2014-05-29 15:03:38 +0200
commit1049490b7b146e3d2105d05e41ea6f740bae9dda (patch)
tree4dcf4d65d741ec370aeefceae5e184d72e6b43b3 /lib/diameter/test/diameter_compiler_SUITE.erl
parent07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff)
downloadotp-1049490b7b146e3d2105d05e41ea6f740bae9dda.tar.gz
otp-1049490b7b146e3d2105d05e41ea6f740bae9dda.tar.bz2
otp-1049490b7b146e3d2105d05e41ea6f740bae9dda.zip
Add @codecs and @custom_types tests to compiler suite
Dictionary compilation fails to detect undefined AVPs in these sections.
Diffstat (limited to 'lib/diameter/test/diameter_compiler_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_compiler_SUITE.erl15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/diameter/test/diameter_compiler_SUITE.erl b/lib/diameter/test/diameter_compiler_SUITE.erl
index 08ffe5981d..20c9275808 100644
--- a/lib/diameter/test/diameter_compiler_SUITE.erl
+++ b/lib/diameter/test/diameter_compiler_SUITE.erl
@@ -317,6 +317,21 @@
{avp_not_defined,
"CEA ::=",
"<XXX> &"},
+ {ok,
+ "@avp_types",
+ "@codecs tmod Session-Id &"},
+ {ok,
+ "@avp_types",
+ "@custom_types tmod Session-Id &"},
+ {avp_not_defined,
+ "@avp_types",
+ "@codecs tmod OctetString &"},
+ {avp_not_defined,
+ "@avp_types",
+ "@custom_types tmod OctetString &"},
+ {avp_already_defined,
+ "@avp_types",
+ "@codecs tmod Session-Id @custom_types tmod Session-Id &"},
{not_loaded,
[{"@avp_types", "@inherits nomod XXX &"},
{"CEA ::=", "<XXX> &"}]},