Commit ed6e9881 authored by Tristan Gingold's avatar Tristan Gingold

Add test 041err_syn

parent 1670ec89
action = "synthesis"
language = "vhdl"
syn_device = "xc6slx45t"
syn_grade = "-3"
syn_package = "fgg484"
syn_top = "gate"
syn_project = "gate.xise"
files = [ "../files/gate.vhdl" ]
...@@ -13,7 +13,7 @@ class Config(object): ...@@ -13,7 +13,7 @@ class Config(object):
self.prev_env_path = os.environ['PATH'] self.prev_env_path = os.environ['PATH']
self.prev_check_windows = hdlmake.util.shell.check_windows self.prev_check_windows = hdlmake.util.shell.check_windows
self.check_windows = check_windows self.check_windows = check_windows
def __enter__(self): def __enter__(self):
os.environ['PATH'] = ("../linux_fakebin:" os.environ['PATH'] = ("../linux_fakebin:"
+ os.path.abspath('linux_fakebin') + ':' + os.path.abspath('linux_fakebin') + ':'
...@@ -52,10 +52,10 @@ def test_makefile_002(): ...@@ -52,10 +52,10 @@ def test_makefile_002():
def test_makefile_003(): def test_makefile_003():
run_compare(path="003msim") run_compare(path="003msim")
def test_makefile_004(): def test_makefile_004():
run_compare(path="004msim") run_compare(path="004msim")
def test_fetch(): def test_fetch():
run(['fetch'], path="001ise") run(['fetch'], path="001ise")
...@@ -209,6 +209,12 @@ def test_manifest_vars(): ...@@ -209,6 +209,12 @@ def test_manifest_vars():
def test_srcfiles(): def test_srcfiles():
run_compare(path="040srcfiles") run_compare(path="040srcfiles")
def test_no_syn_tool():
with pytest.raises(SystemExit) as _:
run([], path="041err_syn")
assert False
@pytest.mark.xfail @pytest.mark.xfail
def test_xfail(): def test_xfail():
"""This is a self-consistency test: the test is known to fail""" """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