Commit faeb6e65 authored by Tristan Gingold's avatar Tristan Gingold

Add tests for git with different URL

parent 2f38aa4f
action = "simulation"
sim_tool="modelsim"
top_module = "gate"
fetchto = "ipcores"
files = [ "../files/gate.vhdl" ]
modules = { "git" : "git@test.org:tester/module1/" }
action = "simulation"
sim_tool="modelsim"
top_module = "gate"
fetchto = "ipcores"
files = [ "../files/gate.vhdl" ]
modules = { "git" : "git@test.org:tester/module1" }
......@@ -15,7 +15,11 @@ if argv[0] == 'clone':
if len(argv) == 2:
# Get the basename of the module
name = argv[1]
name = name[name.rfind('/') + 1:-4]
if name.endswith('.git'):
name = name[:-4]
elif name[-1] == '/':
name = name[:-1]
name = name[name.rfind('/') + 1:]
modpath = os.path.join(os.path.dirname(__file__), '..', 'modules', name)
if os.path.exists(name):
sys.exit(0)
......
......@@ -190,6 +190,16 @@ def test_git_fetch_rev():
hdlmake.__main__.hdlmake(['fetch'])
shutil.rmtree('ipcores')
def test_git_fetch_url():
with Config(path="073git_fetch_url") as _:
hdlmake.__main__.hdlmake(['fetch'])
shutil.rmtree('ipcores')
def test_git_fetch_url2():
with Config(path="074git_fetch_url") as _:
hdlmake.__main__.hdlmake(['fetch'])
shutil.rmtree('ipcores')
def test_svn_fetch():
with Config(path="021svn_fetch") as _:
hdlmake.__main__.hdlmake(['list-mods'])
......
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