From 9873cdbb5d774678e84b9fd54420e2b809de7a88 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 20 Aug 2023 00:08:04 +0200 Subject: [PATCH] Added README entry and matching test cases. --- README.md | 2 ++ tests/unit/IPXACT.py | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 95e8c61..6587dc1 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ The original source is [Accellera](https://www.accellera.org/XMLSchema/). **Unknown License State** +* [IEEE Std. 1685-2014](http://www.accellera.org/XMLSchema/IPXACT/1685-2014/) + ⚠️ local [README](ieee-1685-2014/README.md) (text provided by Accellera) contains open source threatening rules * [IEEE Std. 1685-2009](http://www.accellera.org/XMLSchema/SPIRIT/1685-2009/) ⚠️ local [README](ieee-1685-2009/README.md) (text provided by Accellera) contains open source threatening rules diff --git a/tests/unit/IPXACT.py b/tests/unit/IPXACT.py index 9e08c37..92a9820 100644 --- a/tests/unit/IPXACT.py +++ b/tests/unit/IPXACT.py @@ -138,3 +138,22 @@ def test_Schema2009(self): schemaFile = directory / file print(f" {schemaFile}") _ = XMLSchema(schemaFile) + + def test_Schema2014(self): + print() + print(f"CWD: {Path.cwd()}") + + directory = self._root / "ieee-1685-2014" + print(f"Schema directory: {directory}") + + schemaFiles = ( + "design.xsd", + "component.xsd", + "busDefinition.xsd", + "generator.xsd", + ) + print(f"Reading schemas ...") + for file in schemaFiles: + schemaFile = directory / file + print(f" {schemaFile}") + _ = XMLSchema(schemaFile)