CI: run testsuite with -Werror.

This commit is contained in:
whitequark 2020-11-06 01:38:03 +00:00
parent c6150d0586
commit 10fd5cff4b
2 changed files with 5 additions and 3 deletions

View file

@ -33,6 +33,7 @@ jobs:
- name: Run tests
run: |
export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
export PYTHONWARNINGS=error
python -m coverage run -m unittest
codecov
document:

View file

@ -74,9 +74,10 @@ class FHDLTestCase(unittest.TestCase):
script=script,
rtlil=rtlil.convert(Fragment.get(spec, platform="formal"))
)
with subprocess.Popen([require_tool("sby"), "-f", "-d", spec_name], cwd=spec_dir,
universal_newlines=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
with subprocess.Popen(
[require_tool("sby"), "-f", "-d", spec_name],
cwd=spec_dir, env={**os.environ, "PYTHONWARNINGS":"ignore"},
universal_newlines=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
stdout, stderr = proc.communicate(config)
if proc.returncode != 0:
self.fail("Formal verification failed:\n" + stdout)