Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LI - Lawful Interception
TC LI schemas definitions
Commits
46453848
Commit
46453848
authored
Feb 26, 2020
by
canterburym
Browse files
Initial commit - gitignore and test fixtures
parent
c7f42066
Changes
3
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
testing/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"
)
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