Loading .gitignore 0 → 100644 +13 −0 Original line number Diff line number Diff line # 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 +20 −0 Original line number Diff line number Diff line 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 +17 −0 Original line number Diff line number Diff line 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") Loading
.gitignore 0 → 100644 +13 −0 Original line number Diff line number Diff line # 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 +20 −0 Original line number Diff line number Diff line 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 +17 −0 Original line number Diff line number Diff line 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")