Commit 2f38aa4f authored by Tristan Gingold's avatar Tristan Gingold

Add a test for svn fetch with revision.

parent d647d312
action = "simulation"
sim_tool="modelsim"
top_module = "gate"
fetchto = "ipcores"
files = [ "../files/gate.vhdl" ]
modules = { "svn" : "http://test.org:tester/module1@r1616" }
......@@ -12,6 +12,8 @@ if sys.argv[1] == 'checkout':
# Get the basename of the module
name = sys.argv[2]
name = name[name.rfind('/') + 1:]
if name.find('@') >= 0:
name = name[:name.find('@')]
assert name == sys.argv[3]
modpath = os.path.join(os.path.dirname(__file__), '..', 'modules', name)
if os.path.exists(name):
......
......@@ -197,6 +197,11 @@ def test_svn_fetch():
hdlmake.__main__.hdlmake(['list-mods', '--with-files'])
shutil.rmtree('ipcores')
def test_svn_fetch_rev():
with Config(path="072svn_fetch_rev") as _:
hdlmake.__main__.hdlmake(['fetch'])
shutil.rmtree('ipcores')
def test_gitsm_fetch():
with Config(path="022gitsm_fetch") as _:
hdlmake.__main__.hdlmake(['fetch'])
......
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