Commit 2775030d authored by Tristan Gingold's avatar Tristan Gingold

Add more tests.

parent 65575c96
action = "simulation"
sim_tool="modelsim"
top_module = "gate"
fetchto = "ipcores"
files = [ "../files/gate.vhdl" ]
modules = { "git" : "git@test.org:tester/module1.git" }
fetch_pre_cmd="echo pre"
fetch_post_cmd="echo post"
......@@ -201,6 +201,16 @@ def test_gitsm_fetch():
hdlmake.__main__.hdlmake(['clean'])
shutil.rmtree('ipcores')
def test_git_fetch_cmds():
with Config(path="065fetch_pre_post") as _:
hdlmake.__main__.hdlmake(['fetch'])
shutil.rmtree('ipcores')
def test_err_fetch():
with pytest.raises(SystemExit) as _:
run([], path="065fetch_pre_post")
assert False
def test_xci():
run_compare(path="023xci")
......@@ -359,6 +369,9 @@ def test_err_loglevel():
def test_err_noaction():
run(['--log', 'warning'], path="002msim")
def test_all_files():
run(['-a', 'makefile'], path="002msim")
@pytest.mark.xfail
def test_xfail():
"""This is a self-consistency test: the test is known to fail"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment