示例#1
0
def test_generate_dot(top, key):
    assert key not in top.env.config
    generate_dot(top)
    assert key in top.env.config
    files = os.listdir(os.curdir)
    for key in top.env.config:
        if key.startswith('sim.dot.') and key.endswith('.file'):
            assert top.env.config[key] not in files
示例#2
0
文件: test_dot.py 项目: vagvaz/desmod
def test_generate_dot(top, key):
    assert key not in top.env.config
    generate_dot(top)
    assert key in top.env.config
    files = os.listdir(os.curdir)
    for key in top.env.config:
        if key.startswith('sim.dot.') and key.endswith('.file'):
            assert top.env.config[key] not in files
示例#3
0
 def elab_hook(self):
     # We generate DOT representations of the component hierarchy. It is
     # only after elaboration that the component tree is fully populated and
     # connected, thus generate_dot() is called here in elab_hook().
     generate_dot(self)
示例#4
0
文件: test_dot.py 项目: vagvaz/desmod
def test_generate_dot_file_enables(top, key):
    top.env.config['sim.dot.enable'] = True
    top.env.config[key] = ''
    generate_dot(top)
    assert all(name.endswith('.dot') for name in os.listdir(os.curdir))
示例#5
0
 def elab_hook(self):
     generate_dot(self)
示例#6
0
def test_generate_dot_file_enables(top, key):
    top.env.config['sim.dot.enable'] = True
    top.env.config[key] = ''
    generate_dot(top)
    assert all(name.endswith('.dot') for name in os.listdir(os.curdir))
示例#7
0
 def elab_hook(self):
     generate_dot(self)
示例#8
0
 def elab_hook(self):
     # We generate DOT representations of the component hierarchy. It is
     # only after elaboration that the component tree is fully populated and
     # connected, thus generate_dot() is called here in elab_hook().
     generate_dot(self)