aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-12-16 16:19:06 +0100
committerAnders Svensson <[email protected]>2011-12-16 18:27:20 +0100
commitfba96f493b940f032bc238492a9375ad6397dbe4 (patch)
tree7506c1415e636c1b4b088bb4591c7dffa0f9b2b3 /lib
parentd486873f661e8e22b355c9f12edb726a6832d84d (diff)
downloadotp-fba96f493b940f032bc238492a9375ad6397dbe4.tar.gz
otp-fba96f493b940f032bc238492a9375ad6397dbe4.tar.bz2
otp-fba96f493b940f032bc238492a9375ad6397dbe4.zip
Move example dictionaries to examples/dict
Diffstat (limited to 'lib')
-rw-r--r--lib/diameter/examples/dict/rfc4004_mip.dia (renamed from lib/diameter/test/diameter_compiler_SUITE_data/rfc4004_mip.dia)0
-rw-r--r--lib/diameter/examples/dict/rfc4005_nas.dia (renamed from lib/diameter/test/diameter_compiler_SUITE_data/rfc4005_nas.dia)0
-rw-r--r--lib/diameter/examples/dict/rfc4006_cc.dia (renamed from lib/diameter/test/diameter_compiler_SUITE_data/rfc4006_cc.dia)0
-rw-r--r--lib/diameter/examples/dict/rfc4072_eap.dia (renamed from lib/diameter/test/diameter_compiler_SUITE_data/rfc4072_eap.dia)0
-rw-r--r--lib/diameter/examples/dict/rfc4590_digest.dia (renamed from lib/diameter/test/diameter_compiler_SUITE_data/rfc4590_digest.dia)0
-rw-r--r--lib/diameter/examples/dict/rfc4740_sip.dia (renamed from lib/diameter/test/diameter_compiler_SUITE_data/rfc4740_sip.dia)0
-rw-r--r--lib/diameter/test/diameter_compiler_SUITE.erl32
7 files changed, 16 insertions, 16 deletions
diff --git a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4004_mip.dia b/lib/diameter/examples/dict/rfc4004_mip.dia
index 575ad4394a..575ad4394a 100644
--- a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4004_mip.dia
+++ b/lib/diameter/examples/dict/rfc4004_mip.dia
diff --git a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4005_nas.dia b/lib/diameter/examples/dict/rfc4005_nas.dia
index a4b44e38bb..a4b44e38bb 100644
--- a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4005_nas.dia
+++ b/lib/diameter/examples/dict/rfc4005_nas.dia
diff --git a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4006_cc.dia b/lib/diameter/examples/dict/rfc4006_cc.dia
index b723e4ddbb..b723e4ddbb 100644
--- a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4006_cc.dia
+++ b/lib/diameter/examples/dict/rfc4006_cc.dia
diff --git a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4072_eap.dia b/lib/diameter/examples/dict/rfc4072_eap.dia
index 111516b347..111516b347 100644
--- a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4072_eap.dia
+++ b/lib/diameter/examples/dict/rfc4072_eap.dia
diff --git a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4590_digest.dia b/lib/diameter/examples/dict/rfc4590_digest.dia
index a4ebe0c456..a4ebe0c456 100644
--- a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4590_digest.dia
+++ b/lib/diameter/examples/dict/rfc4590_digest.dia
diff --git a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4740_sip.dia b/lib/diameter/examples/dict/rfc4740_sip.dia
index 8c21882649..8c21882649 100644
--- a/lib/diameter/test/diameter_compiler_SUITE_data/rfc4740_sip.dia
+++ b/lib/diameter/examples/dict/rfc4740_sip.dia
diff --git a/lib/diameter/test/diameter_compiler_SUITE.erl b/lib/diameter/test/diameter_compiler_SUITE.erl
index f12fba3654..3b4c9706e0 100644
--- a/lib/diameter/test/diameter_compiler_SUITE.erl
+++ b/lib/diameter/test/diameter_compiler_SUITE.erl
@@ -32,7 +32,7 @@
-export([format/1, format/2,
replace/1, replace/2,
generate/1, generate/4, generate/0,
- standards/1, standards/0]).
+ examples/1, examples/0]).
-export([dict/0]). %% fake dictionary module
@@ -328,13 +328,13 @@
"@codecs mymod "
"Origin-Host Origin-Realm\n&"}]}]).
-%% Standard dictionaries.
--define(STANDARDS, [rfc4004_mip,
- rfc4005_nas,
- rfc4006_cc,
- rfc4072_eap,
- rfc4590_digest,
- rfc4740_sip]).
+%% Standard dictionaries in examples/dict.
+-define(EXAMPLES, [rfc4004_mip,
+ rfc4005_nas,
+ rfc4006_cc,
+ rfc4072_eap,
+ rfc4590_digest,
+ rfc4740_sip]).
%% ===========================================================================
@@ -345,7 +345,7 @@ all() ->
[format,
replace,
generate,
- standards].
+ examples].
%% Error handling testcases will make an erroneous dictionary out of
%% the base dictionary and check that the expected error results.
@@ -432,18 +432,18 @@ generate(Mods, Bin, N, Mode) ->
andalso ({ok, _} = compile:file(File ++ ".erl", [return_errors])).
%% ===========================================================================
-%% standards/1
+%% examples/1
%%
%% Compile dictionaries extracted from various standards.
-standards() ->
- [{timetrap, {seconds, 3*length(?STANDARDS)}}].
+examples() ->
+ [{timetrap, {seconds, 3*length(?EXAMPLES)}}].
-standards(Config) ->
- Data = proplists:get_value(data_dir, Config),
- [D || D <- ?STANDARDS, _ <- [standards(?S(D), Data)]].
+examples(_Config) ->
+ Dir = filename:join([code:lib_dir(diameter, examples), "dict"]),
+ [D || D <- ?EXAMPLES, _ <- [examples(?S(D), Dir)]].
-standards(Dict, Dir) ->
+examples(Dict, Dir) ->
{Name, Pre} = make_name(Dict),
ok = diameter_make:codec(filename:join([Dir, Dict ++ ".dia"]),
[{name, Name},