Skip to content

Commit

Permalink
Add @codecs and @custom_types tests to compiler suite
Browse files Browse the repository at this point in the history
Dictionary compilation fails to detect undefined AVPs in these sections.
  • Loading branch information
Anders Svensson committed May 29, 2014
1 parent 07b8f44 commit 1049490
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/diameter/test/diameter_compiler_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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> &"}]},
Expand Down

0 comments on commit 1049490

Please sign in to comment.