Skip to content

Commit

Permalink
Merge pull request #108 from leonardt/patch-msat-test
Browse files Browse the repository at this point in the history
Add logic to skip msat test if not available
  • Loading branch information
leonardt authored May 24, 2019
2 parents 7f058b4 + c5b343e commit bd4687b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_symbolic_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ def pytest_generate_tests(metafunc):


def test_tester_magma_internal_signals_verilator(target):
if target == "cosa":
from pysmt.shortcuts import Solver
from pysmt.exceptions import NoSolverAvailableError
import pytest
try:
with Solver(name="msat"):
pass
except NoSolverAvailableError:
pytest.skip("msat not available")
circ = common.SimpleALU

tester = SymbolicTester(circ, circ.CLK, num_tests=100)
Expand Down

0 comments on commit bd4687b

Please sign in to comment.