Commit 394291d5 authored by Tristan Gingold's avatar Tristan Gingold

Add tests for git fetch

parent b8316258
action = "simulation"
sim_tool="modelsim"
top_module = "gate"
fetchto = "ipcores"
files = [ "../files/gate.vhdl" ]
modules = { "git" : "git@test.org:tester/module1.git::my_branch" }
action = "simulation"
sim_tool="modelsim"
top_module = "gate"
fetchto = "ipcores"
files = [ "../files/gate.vhdl" ]
modules = { "git" : "git@test.org:tester/module1.git@@abcd567" }
......@@ -29,6 +29,12 @@ if argv[0] == 'clone':
else:
print("unhandled fake git clone")
sys.exit(1)
elif argv[0] == 'checkout':
if len(argv) == 2:
sys.exit(0)
else:
print("unhandled fake git checkout")
sys.exit(1)
elif argv[0] == 'submodule':
if argv[1:] == ['init']:
sys.exit(0)
......
......@@ -163,6 +163,16 @@ def test_git_fetch():
shutil.rmtree('ipcores.old', ignore_errors=True)
shutil.move('ipcores', 'ipcores.old')
def test_git_fetch_branch():
with Config(path="055git_fetch_branch") as _:
hdlmake.__main__.hdlmake(['fetch'])
shutil.rmtree('ipcores')
def test_git_fetch_rev():
with Config(path="056git_fetch_rev") 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