Commit 46453848 authored by canterburym's avatar canterburym

Initial commit - gitignore and test fixtures

parent c7f42066
Pipeline #2719 failed with stage
in 13 seconds
# OS cruft
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Standards cruft
.doc
.docx
.zip
\ No newline at end of file
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
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")
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