From b5884712a4ce8980831d4b231d123688063ccbf2 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 21 Jun 2022 23:10:26 +0200 Subject: Enable and disable AMS support based on VHDLVersion. (cherry picked from commit 04d141309147a5731ea3461d59cfc8e17ad57c82) --- testsuite/pyunit/dom/Sanity.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'testsuite/pyunit/dom/Sanity.py') diff --git a/testsuite/pyunit/dom/Sanity.py b/testsuite/pyunit/dom/Sanity.py index 54cb4103b..4fc721d55 100644 --- a/testsuite/pyunit/dom/Sanity.py +++ b/testsuite/pyunit/dom/Sanity.py @@ -34,6 +34,7 @@ from pathlib import Path from pytest import mark +from pyVHDLModel import VHDLVersion from pyGHDL.dom.NonStandard import Design, Document @@ -55,6 +56,8 @@ def test_AllVHDLSources(parameters): id, file = parameters.split(":") filePath = _TESTSUITE_ROOT / file + vhdlVersion = VHDLVersion.AMS2017 if "ams" in file else VHDLVersion.VHDL2008 + lib = design.GetLibrary(f"sanity_{id}") - document = Document(filePath) + document = Document(filePath, vhdlVersion=vhdlVersion) design.AddDocument(document, lib) -- cgit v1.2.3