Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / test / mibs / LIBSMI-TEST-009-MIB
1 LIBSMI-TEST-009-MIB DEFINITIONS ::= BEGIN
2
3 IMPORTS
4     MODULE-IDENTITY
5         FROM SNMPv2-SMI
6     TEXTUAL-CONVENTION
7         FROM SNMPv2-TC
8     testMib
9         FROM LIBSMI-TEST-MIB;
10
11 libsmiTest009Mib MODULE-IDENTITY
12     LAST-UPDATED    "200005300900Z"
13     ORGANIZATION    
14             "TU Braunschweig"
15     CONTACT-INFO    
16             "        Frank Strauss
17              
18              Postal: TU Braunschweig
19                      Bueltenweg 74/75
20                      38106 Braunschweig
21                      Germany
22              
23               Phone: +49 531 391-3283
24               EMail: strauss@ibr.cs.tu-bs.de
25                http://www.ibr.cs.tu-bs.de/~strauss/"
26     DESCRIPTION     
27             "This MIB module contains one or more intentional errors,
28              and/or unusual contents. Its only purpose is to check
29              the abilities of MIB parsers to detect these circumstances.
30              
31              This MIB module is orginally written in SMIv2 format.
32              
33              The MIB parser should complain about improper number and
34              bits enumerations.
35
36              The libsmi parser is expected to report:
37 LIBSMI-TEST-009-MIB:92: warning: named numbers not in ascending order
38 LIBSMI-TEST-009-MIB:102: warning: first bit (bit zero) has no name assigned
39 LIBSMI-TEST-009-MIB:114: warning: first bit (bit zero) has no name assigned
40 LIBSMI-TEST-009-MIB:120: warning: first bit (bit zero) has no name assigned
41 LIBSMI-TEST-009-MIB:120: warning: named numbers not in ascending order
42 LIBSMI-TEST-009-MIB:126: warning: named bit `yellow(128)' may cause interoperability or implementation problems
43 LIBSMI-TEST-009-MIB:126: warning: first bit (bit zero) has no name assigned
44 LIBSMI-TEST-009-MIB:132: named bit `yellow(524280)' exceeds maximum bit position
45 LIBSMI-TEST-009-MIB:132: warning: first bit (bit zero) has no name assigned
46 LIBSMI-TEST-009-MIB:70: warning: current type `EnumTcTest1' is not referenced in this module
47 LIBSMI-TEST-009-MIB:76: warning: current type `EnumTcTest2' is not referenced in this module
48 LIBSMI-TEST-009-MIB:82: warning: current type `EnumTcTest3' is not referenced in this module
49 LIBSMI-TEST-009-MIB:82: redefinition of name `red' in number enumeration
50 LIBSMI-TEST-009-MIB:88: warning: current type `EnumTcTest4' is not referenced in this module
51 LIBSMI-TEST-009-MIB:88: redefinition of number `3' in number enumeration
52 LIBSMI-TEST-009-MIB:98: warning: current type `BitsTcTest1' is not referenced in this module
53 LIBSMI-TEST-009-MIB:104: warning: current type `BitsTcTest2' is not referenced in this module
54 LIBSMI-TEST-009-MIB:110: warning: current type `BitsTcTest3' is not referenced in this module
55 LIBSMI-TEST-009-MIB:110: redefinition of name `red' in named bits list
56 LIBSMI-TEST-009-MIB:116: warning: current type `BitsTcTest4' is not referenced in this module
57 LIBSMI-TEST-009-MIB:116: redefinition of number `3' in named bits list
58 LIBSMI-TEST-009-MIB:122: warning: current type `BitsTcTest5' is not referenced in this module
59 LIBSMI-TEST-009-MIB:128: warning: current type `BitsTcTest6' is not referenced in this module
60             "
61     REVISION        "200005300900Z"
62     DESCRIPTION     
63             "Initial Revision."
64     ::= { testMib 9 }
65
66 --
67 -- Test cases for number enumerations:
68 --
69
70 EnumTcTest1 ::= TEXTUAL-CONVENTION
71     STATUS      current
72     DESCRIPTION
73         "Valid enumeration."
74     SYNTAX INTEGER { red(1), green(2), blue(3) }
75
76 EnumTcTest2 ::= TEXTUAL-CONVENTION
77     STATUS      current
78     DESCRIPTION
79         "Valid enumeration."
80     SYNTAX INTEGER { none(-1), red(1), green(2), blue(3) }
81
82 EnumTcTest3 ::= TEXTUAL-CONVENTION
83     STATUS      current
84     DESCRIPTION
85         "Invalid enumeration: redefinition of a name."
86     SYNTAX INTEGER { none(-1), red(1), green(2), blue(3), red(4) }
87
88 EnumTcTest4 ::= TEXTUAL-CONVENTION
89     STATUS      current
90     DESCRIPTION
91         "Invalid enumeration: redefinition of a number."
92     SYNTAX INTEGER { none(-1), red(1), green(2), blue(3), yellow(3) }
93
94 --
95 -- Test cases for named bits lists:
96 --
97
98 BitsTcTest1 ::= TEXTUAL-CONVENTION
99     STATUS      current
100     DESCRIPTION
101         "Valid bits enumeration."
102     SYNTAX BITS { red(1), green(2), blue(3) }
103
104 BitsTcTest2 ::= TEXTUAL-CONVENTION
105     STATUS      current
106     DESCRIPTION
107         "Valid bits enumeration."
108     SYNTAX BITS { none(0), red(1), green(2), blue(3) }
109
110 BitsTcTest3 ::= TEXTUAL-CONVENTION
111     STATUS      current
112     DESCRIPTION
113         "Invalid bits enumeration: redefinition of a name."
114     SYNTAX BITS { red(1), green(2), blue(3), red(4) }
115
116 BitsTcTest4 ::= TEXTUAL-CONVENTION
117     STATUS      current
118     DESCRIPTION
119         "Invalid bits enumeration: redefinition of a number."
120     SYNTAX BITS { red(1), green(2), blue(3), yellow(3) }
121
122 BitsTcTest5 ::= TEXTUAL-CONVENTION
123     STATUS      current
124     DESCRIPTION
125         "Invalid bits enumeration: number may cause interoperability problems."
126     SYNTAX BITS { red(1), green(2), blue(3), yellow(128) }
127
128 BitsTcTest6 ::= TEXTUAL-CONVENTION
129     STATUS      current
130     DESCRIPTION
131         "Invalid bits enumeration: number too large to represent."
132     SYNTAX BITS { red(1), green(2), blue(3), yellow(524280) }
133
134 END