aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/pyunit')
-rw-r--r--testsuite/pyunit/dom/Sanity.py5
1 files changed, 4 insertions, 1 deletions
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)