CI: run testsuite with -Werror.
This commit is contained in:
parent
c6150d0586
commit
10fd5cff4b
1
.github/workflows/main.yaml
vendored
1
.github/workflows/main.yaml
vendored
|
@ -33,6 +33,7 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
|
export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
|
||||||
|
export PYTHONWARNINGS=error
|
||||||
python -m coverage run -m unittest
|
python -m coverage run -m unittest
|
||||||
codecov
|
codecov
|
||||||
document:
|
document:
|
||||||
|
|
|
@ -74,9 +74,10 @@ class FHDLTestCase(unittest.TestCase):
|
||||||
script=script,
|
script=script,
|
||||||
rtlil=rtlil.convert(Fragment.get(spec, platform="formal"))
|
rtlil=rtlil.convert(Fragment.get(spec, platform="formal"))
|
||||||
)
|
)
|
||||||
with subprocess.Popen([require_tool("sby"), "-f", "-d", spec_name], cwd=spec_dir,
|
with subprocess.Popen(
|
||||||
universal_newlines=True,
|
[require_tool("sby"), "-f", "-d", spec_name],
|
||||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
|
cwd=spec_dir, env={**os.environ, "PYTHONWARNINGS":"ignore"},
|
||||||
|
universal_newlines=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
|
||||||
stdout, stderr = proc.communicate(config)
|
stdout, stderr = proc.communicate(config)
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
self.fail("Formal verification failed:\n" + stdout)
|
self.fail("Formal verification failed:\n" + stdout)
|
||||||
|
|
Loading…
Reference in a new issue