Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Trial
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TC LI - Lawful Interception
Trial
Commits
46453848
Commit
46453848
authored
Feb 26, 2020
by
canterburym
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit - gitignore and test fixtures
parent
c7f42066
Pipeline
#2719
failed with stage
in 13 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
0 deletions
+50
-0
.gitignore
.gitignore
+13
-0
.gitlab-ci.yml
.gitlab-ci.yml
+20
-0
check_asn1.py
testing/check_asn1.py
+17
-0
No files found.
.gitignore
0 → 100644
View file @
46453848
# OS cruft
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Standards cruft
.doc
.docx
.zip
\ No newline at end of file
.gitlab-ci.yml
0 → 100644
View file @
46453848
image
:
"
python:3.7"
before_script
:
-
python --version
-
pip install -q asn1tools
-
pip install -q lxml
-
pip install -q xmlschema
stages
:
-
Check ASN.1
checkASN1
:
stage
:
Check ASN.1
script
:
-
python test/check_asn1.py
checkXSD
:
stage
:
Check ASN.1
script
:
-
python test/check_xsd.py
\ No newline at end of file
testing/check_asn1.py
0 → 100644
View file @
46453848
from
asn1tools
import
parse_files
,
ParseError
import
sys
from
glob
import
glob
from
pathlib
import
Path
schemaFileGlob
=
glob
(
"*.asn1"
)
if
(
len
(
schemaFileGlob
)
!=
1
):
sys
.
exit
(
"Found {0} XSD files, 1 expected"
.
format
(
len
(
schemaFileGlob
)))
schemaFile
=
schemaFileGlob
[
0
]
try
:
parse_files
(
schemaFile
)
except
ParseError
as
ex
:
sys
.
exit
(
"ASN1 parser error: "
+
ex
)
print
(
"ASN1 schema OK"
)
canterburym
@canterburym
mentioned in commit
1d98b952
·
Feb 26, 2020
mentioned in commit
1d98b952
mentioned in commit 1d98b95256e83b47ce22695dbd846b707c1dbbc0
Toggle commit list
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