functional tests: run from make tests but not smtlib/rkt tests
This commit is contained in:
@@ -4,6 +4,10 @@ import random
|
||||
|
||||
random_seed = random.getrandbits(32)
|
||||
|
||||
def pytest_configure(config):
|
||||
config.addinivalue_line("markers", "smt: test uses smtlib/z3")
|
||||
config.addinivalue_line("markers", "rkt: test uses racket/rosette")
|
||||
|
||||
def pytest_addoption(parser):
|
||||
parser.addoption("--per-cell", type=int, default=None, help="run only N tests per cell")
|
||||
parser.addoption("--steps", type=int, default=1000, help="run each test for N steps")
|
||||
@@ -27,4 +31,4 @@ def pytest_generate_tests(metafunc):
|
||||
seed1 = metafunc.config.getoption("seed")
|
||||
rnd = lambda seed2: random.Random('{}-{}'.format(seed1, seed2))
|
||||
names, cases = generate_test_cases(per_cell, rnd)
|
||||
metafunc.parametrize("cell,parameters", cases, ids=names)
|
||||
metafunc.parametrize("cell,parameters", cases, ids=names)
|
||||
|
||||
Reference in New Issue
Block a user