Commit 5e84fce9 authored by Tristan Gingold's avatar Tristan Gingold

Add a test for verilog define a pp token.

parent 4cddbc6c
action = "simulation"
sim_tool="modelsim"
top_module = "gate"
files = [ "vlog.v" ]
`define include(x) x^1
module gate;
wire w3;
endmodule
...@@ -371,6 +371,10 @@ def test_err_vlog_include(): ...@@ -371,6 +371,10 @@ def test_err_vlog_include():
with pytest.raises(SystemExit) as _: with pytest.raises(SystemExit) as _:
run([], path="077err_vlg_include") run([], path="077err_vlg_include")
def test_err_vlog_define():
with pytest.raises(SystemExit) as _:
run([], path="078err_vlg_define")
def test_dep_level(): def test_dep_level():
run(['list-files'], path="053vlog_dep_level") run(['list-files'], path="053vlog_dep_level")
run(['list-files', '--delimiter', ','], path="053vlog_dep_level") run(['list-files', '--delimiter', ','], path="053vlog_dep_level")
......
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