Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
15750405
Commit
15750405
authored
Jul 03, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new tests for parametrization
parent
472bbdc2
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
691 additions
and
26 deletions
+691
-26
tests/70-xer-test-OK.asn1
tests/70-xer-test-OK.asn1
+8
-0
tests/70-xer-test-OK.asn1.-EF
tests/70-xer-test-OK.asn1.-EF
+11
-3
tests/70-xer-test-OK.asn1.-P
tests/70-xer-test-OK.asn1.-P
+124
-23
tests/84-param-tags-OK.asn1
tests/84-param-tags-OK.asn1
+41
-0
tests/84-param-tags-OK.asn1.-EF
tests/84-param-tags-OK.asn1.-EF
+39
-0
tests/84-param-tags-OK.asn1.-P
tests/84-param-tags-OK.asn1.-P
+468
-0
No files found.
tests/70-xer-test-OK.asn1
View file @
15750405
...
...
@@ -22,6 +22,7 @@ BEGIN
sequenceOf SequenceOf,
extensibleSet ExtensibleSet,
extensibleSequence ExtensibleSequence,
extensibleSequence2 ExtensibleSequence2,
setOfNULL SetOfNULL,
setOfEnums SetOfEnums,
seqOfZuka SeqOfZuka,
...
...
@@ -47,6 +48,13 @@ BEGIN
}
ExtensibleSequence ::= SEQUENCE {
string UTF8String OPTIONAL,
...,
integer INTEGER OPTIONAL,
gtime GeneralizedTime
}
ExtensibleSequence2 ::= SEQUENCE {
string UTF8String OPTIONAL,
...,
integer INTEGER OPTIONAL
...
...
tests/70-xer-test-OK.asn1.-EF
View file @
15750405
...
...
@@ -10,9 +10,10 @@ PDU ::= CHOICE {
sequenceOf [3] IMPLICIT SequenceOf,
extensibleSet [4] IMPLICIT ExtensibleSet,
extensibleSequence [5] IMPLICIT ExtensibleSequence,
setOfNULL [6] IMPLICIT SetOfNULL,
setOfEnums [7] IMPLICIT SetOfEnums,
seqOfZuka [8] IMPLICIT SeqOfZuka,
extensibleSequence2 [6] IMPLICIT ExtensibleSequence2,
setOfNULL [7] IMPLICIT SetOfNULL,
setOfEnums [8] IMPLICIT SetOfEnums,
seqOfZuka [9] IMPLICIT SeqOfZuka,
...
}
...
...
@@ -38,6 +39,13 @@ ExtensibleSet ::= SET {
}
ExtensibleSequence ::= SEQUENCE {
string [0] IMPLICIT UTF8String OPTIONAL,
...,
integer [1] IMPLICIT INTEGER OPTIONAL,
gtime [2] IMPLICIT GeneralizedTime
}
ExtensibleSequence2 ::= SEQUENCE {
string [0] IMPLICIT UTF8String OPTIONAL,
...,
integer [1] IMPLICIT INTEGER OPTIONAL
...
...
tests/70-xer-test-OK.asn1.-P
View file @
15750405
This diff is collapsed.
Click to expand it.
tests/84-param-tags-OK.asn1
0 → 100644
View file @
15750405
-- OK: Everything is fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .84 1
-- .84 2
ModuleTestParametrizationTags1
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 84 1 }
DEFINITIONS ::=
BEGIN
TestType {Parameter} ::= SEQUENCE {
common Parameter DEFAULT 0
}
TestChoice ::= CHOICE {
type1 TestType {INTEGER (1..10)},
type2 [0] IMPLICIT TestType {BOOLEAN}
}
END
ModuleTestParametrizationTagsAuto2
{ iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 84 2 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
AutoType {Parameter} ::= SEQUENCE {
common Parameter (0)
}
AutoChoice ::= CHOICE {
type1 AutoType {INTEGER (0..1)},
type2 AutoType {BOOLEAN}
}
END
tests/84-param-tags-OK.asn1.-EF
0 → 100644
View file @
15750405
ModuleTestParametrizationTags1 { iso org(3) dod(6) internet(1) private(4)
enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 84 1 }
DEFINITIONS ::=
BEGIN
TestType{Parameter} ::= SEQUENCE {
common Parameter DEFAULT 0
}
TestChoice ::= CHOICE {
type1 SEQUENCE {
common INTEGER (1..10) DEFAULT 0
},
type2 [0] IMPLICIT SEQUENCE {
common BOOLEAN DEFAULT 0
}
}
END
ModuleTestParametrizationTagsAuto2 { iso org(3) dod(6) internet(1) private(4)
enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 84 2 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
AutoType{Parameter} ::= SEQUENCE {
common Parameter (0)
}
AutoChoice ::= CHOICE {
type1 [0] IMPLICIT SEQUENCE {
common [0] IMPLICIT INTEGER ((0..1))((0))
},
type2 [1] IMPLICIT SEQUENCE {
common [0] IMPLICIT BOOLEAN (0)
}
}
END
tests/84-param-tags-OK.asn1.-P
0 → 100644
View file @
15750405
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment