Commit 2387ff39 authored by Bi-Ruei, Chiu's avatar Bi-Ruei, Chiu Committed by Lev Walkin

Modify test 156 for verifying pull request 224 and 227 simultaneously

parent 5bdb5555
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
-- .155 -- .155
ModuleParameterizationMoreThanTwoLevel ModuleParameterizationMoreThanTwoLevel
{ iso org(3) dod(6) internet(1) private(4) enterprise(1) { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 155 } spelio(9363) software(1) asn1c(5) test(1) 155 }
DEFINITIONS ::= BEGIN DEFINITIONS ::= BEGIN
id-TYPE1 PacketId ::= 1 id-TYPE1 PacketId ::= 1
...@@ -19,10 +19,10 @@ DEFINITIONS ::= BEGIN ...@@ -19,10 +19,10 @@ DEFINITIONS ::= BEGIN
Valid ::= ENUMERATED { crc-nok, crc-ok(1) } Valid ::= ENUMERATED { crc-nok, crc-ok(1) }
PACKET ::= CLASS { PACKET ::= CLASS {
&id PacketId UNIQUE, &id PacketId UNIQUE,
&color Color, &color Color,
&Value, &Value,
&valid Valid &valid Valid
} }
WITH SYNTAX { WITH SYNTAX {
ID &id ID &id
......
...@@ -5,58 +5,42 @@ ...@@ -5,58 +5,42 @@
-- .spelio.software.asn1c.test (9363.1.5.1) -- .spelio.software.asn1c.test (9363.1.5.1)
-- .156 -- .156
ModuleParameterizationMoreThanTwoLevel ModuleUnionIOS
{ iso org(3) dod(6) internet(1) private(4) enterprise(1) { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 156 } spelio(9363) software(1) asn1c(5) test(1) 156 }
DEFINITIONS ::= BEGIN DEFINITIONS ::= BEGIN
TOTAL-CLASS SAMPLE-CLASS ::= { MYID ::= CLASS {
CLASS-1 | &id INTEGER UNIQUE,
CLASS-2, &Type
... } WITH SYNTAX {&Type IDENTIFIED BY &id}
TotalRegionExtension MYID ::= {
RegionalExtension1 |
RegionalExtension2
} }
CLASS-1 SAMPLE-CLASS ::= { RegionalExtension1 MYID ::= {
item1-1 | {INTEGER IDENTIFIED BY 1} |
item1-2, {BOOLEAN IDENTIFIED BY 2},
..., ...,
item1-3 {OCTET STRING IDENTIFIED BY 3}
} }
CLASS-2 SAMPLE-CLASS ::= { RegionalExtension2 MYID ::= {
item2-1, {INTEGER IDENTIFIED BY 1},
..., ...,
item2-2 | {BOOLEAN IDENTIFIED BY 2} |
item2-3 {OCTET STRING IDENTIFIED BY 3}
} }
SAMPLE-CLASS ::= CLASS { Message ::= SEQUENCE {
&id RELATIVE-OID UNIQUE, content SpecializedContent {{TotalRegionExtension}}
&code ENUMERATED { request, response, status } }
DEFAULT request,
&Type OPTIONAL
} WITH SYNTAX { [TYPE &Type] [WITH CODE &code] IDENTIFIED BY &id }
item1-1 SAMPLE-CLASS ::= { IDENTIFIED BY id1-1 }
item1-2 SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY id1-2 }
item1-3 SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY id1-3 }
item2-1 SAMPLE-CLASS ::= { IDENTIFIED BY id2-1 }
item2-2 SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY id2-2 }
item2-3 SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY id2-3 }
id1-1 RELATIVE-OID ::= { 1 1 }
id1-2 RELATIVE-OID ::= { 1 2 }
id1-3 RELATIVE-OID ::= { 1 3 }
id2-1 RELATIVE-OID ::= { 2 1 }
id2-2 RELATIVE-OID ::= { 2 2 }
id2-3 RELATIVE-OID ::= { 2 3 }
SampleType ::= SEQUENCE { ... } SpecializedContent {MYID : Set} ::= SEQUENCE {
Salt ::= SET { ... } id MYID.&id({Set}),
value MYID.&Type({Set}{@id})
}
END END
ModuleParameterizationMoreThanTwoLevel { iso org(3) dod(6) internet(1)
private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
156 }
DEFINITIONS ::=
BEGIN
TOTAL-CLASS SAMPLE-CLASS ::= {({ IDENTIFIED BY id1-1 } | { WITH CODE 1 IDENTIFIED BY id1-2 }) ({ IDENTIFIED BY id1-1 } | { WITH CODE 1 IDENTIFIED BY id1-2 }) | ({ IDENTIFIED BY id2-1 }) ({ IDENTIFIED BY id2-1 }),...}
-- Information Object Set has 4 entries:
-- [ &id][ &code][ &Type]
-- [1] id1-1 <no entry> <no entry>
-- [2] id1-2 1 <no entry>
-- [3] id2-2 1 <no entry>
-- [4] id2-3 2 SampleType
CLASS-1 SAMPLE-CLASS ::= {{ IDENTIFIED BY id1-1 } | { WITH CODE 1 IDENTIFIED BY id1-2 },...,{ TYPE SampleType WITH CODE 2 IDENTIFIED BY id1-3 }}
-- Information Object Set has 2 entries:
-- [ &id][&code][&Type]
-- [1] id1-1 <no entry> <no entry>
-- [2] id1-2 1 <no entry>
-- [ ] ...
CLASS-2 SAMPLE-CLASS ::= {{ IDENTIFIED BY id2-1 },...,{ WITH CODE 1 IDENTIFIED BY id2-2 } | { TYPE SampleType WITH CODE 2 IDENTIFIED BY id2-3 }}
-- Information Object Set has 2 entries:
-- [ &id][ &code][ &Type]
-- [1] id2-2 1 <no entry>
-- [2] id2-3 2 SampleType
-- [ ] ...
SAMPLE-CLASS ::= CLASS {
&id RELATIVE-OID UNIQUE,
&code ENUMERATED {
request(0),
response(1),
status(2)
} DEFAULT 0,
&Type OPTIONAL
} WITH SYNTAX { [TYPE &Type] [WITH CODE &code] IDENTIFIED BY &id }
-- Information Object Set has 6 entries:
-- [ &id][ &code][ &Type]
-- [1] id1-1 <no entry> <no entry>
-- [2] id1-2 1 <no entry>
-- [3] id2-2 1 <no entry>
-- [4] id2-3 2 SampleType
-- [5] id1-3 2 SampleType
-- [6] id2-1 <no entry> <no entry>
item1-1 SAMPLE-CLASS ::= { IDENTIFIED BY id1-1 }
-- Information Object Set has 1 entry:
-- [ &id][&code][&Type]
-- [1] id1-1 <no entry> <no entry>
item1-2 SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY id1-2 }
-- Information Object Set has 1 entry:
-- [ &id][&code][&Type]
-- [1] id1-2 1 <no entry>
item1-3 SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY id1-3 }
-- Information Object Set has 1 entry:
-- [ &id][ &code][ &Type]
-- [1] id1-3 2 SampleType
item2-1 SAMPLE-CLASS ::= { IDENTIFIED BY id2-1 }
-- Information Object Set has 1 entry:
-- [ &id][&code][&Type]
-- [1] id2-1 <no entry> <no entry>
item2-2 SAMPLE-CLASS ::= { WITH CODE 1 IDENTIFIED BY id2-2 }
-- Information Object Set has 1 entry:
-- [ &id][&code][&Type]
-- [1] id2-2 1 <no entry>
item2-3 SAMPLE-CLASS ::= { TYPE SampleType WITH CODE 2 IDENTIFIED BY id2-3 }
-- Information Object Set has 1 entry:
-- [ &id][ &code][ &Type]
-- [1] id2-3 2 SampleType
id1-1 RELATIVE-OID ::= { 1 1 }
id1-2 RELATIVE-OID ::= { 1 2 }
id1-3 RELATIVE-OID ::= { 1 3 }
id2-1 RELATIVE-OID ::= { 2 1 }
id2-2 RELATIVE-OID ::= { 2 2 }
id2-3 RELATIVE-OID ::= { 2 3 }
SampleType ::= SEQUENCE {
...
}
Salt ::= SET {
...
}
END
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment