Commit 1d98b952 authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Revert "Initial commit - gitignore and test fixtures"

This reverts commit 46453848
parent 46453848
Loading
Loading
Loading
Loading

.gitignore

deleted100644 → 0
+0 −13
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

deleted100644 → 0
+0 −20
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

deleted100644 → 0
+0 −17
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")