diff options
author | Raimo Niskanen <[email protected]> | 2018-06-11 15:26:16 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-06-11 15:26:16 +0200 |
commit | 2241b602a33d872a8fc057bafaba770b76491394 (patch) | |
tree | 26fe69a967e9b05a6aba1737d4d79adb838bb241 /lib/snmp/test/snmp_compiler_test.erl | |
parent | 558f6498f51242f2a668bae08b0bfff41f591bf4 (diff) | |
parent | 03ca198787cc2ac787f96636f68b26eb4dcdee70 (diff) | |
download | otp-2241b602a33d872a8fc057bafaba770b76491394.tar.gz otp-2241b602a33d872a8fc057bafaba770b76491394.tar.bz2 otp-2241b602a33d872a8fc057bafaba770b76491394.zip |
Merge branch 'raimo/snmp/parse-mc_new_type-first-master/ERIERL-161/OTP-14196'
* raimo/snmp/parse-mc_new_type-first-master/ERIERL-161/OTP-14196:
Add test case
Parse #mc_new_type{}s before definitions_loop/2
Diffstat (limited to 'lib/snmp/test/snmp_compiler_test.erl')
-rw-r--r-- | lib/snmp/test/snmp_compiler_test.erl | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/lib/snmp/test/snmp_compiler_test.erl b/lib/snmp/test/snmp_compiler_test.erl index 2b6bba4ee6..0a7b729d1f 100644 --- a/lib/snmp/test/snmp_compiler_test.erl +++ b/lib/snmp/test/snmp_compiler_test.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2003-2017. All Rights Reserved. +%% Copyright Ericsson AB 2003-2018. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -58,7 +58,8 @@ otp_10799/1, otp_10808/1, otp_14145/1, - otp_13014/1 + otp_13014/1, + otp_14196/1 ]). %%---------------------------------------------------------------------- @@ -138,7 +139,7 @@ all() -> groups() -> [{tickets, [], [otp_6150, otp_8574, otp_8595, otp_10799, otp_10808, otp_14145, - otp_13014]}]. + otp_13014, otp_14196]}]. init_per_group(_GroupName, Config) -> Config. @@ -489,6 +490,22 @@ otp_13014(Config) when is_list(Config) -> TableInfo, ok. +%%====================================================================== + +otp_14196(suite) -> + []; +otp_14196(Config) when is_list(Config) -> + put(tname, otp14196), + p("starting with Config: ~p~n", [Config]), + + Dir = ?config(case_top_dir, Config), + MibDir = ?config(mib_dir, Config), + MibFile = join(MibDir, "OTP14196-MIB.mib"), + ?line {ok, Mib} = + snmpc:compile(MibFile, [{outdir, Dir}, {verbosity, trace}]), + p("Mib: ~n~p~n", [Mib]), + ok. + %%====================================================================== |