Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LI - Lawful Interception
Trial
Commits
46453848
Commit
46453848
authored
Feb 26, 2020
by
canterburym
Browse files
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
.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
Supports
Markdown
0%
Try again
or
attach a new 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