Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
394291d5
Commit
394291d5
authored
Jun 07, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for git fetch
parent
b8316258
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
+34
-0
Manifest.py
testsuite/055git_fetch_branch/Manifest.py
+9
-0
Manifest.py
testsuite/056git_fetch_rev/Manifest.py
+9
-0
git
testsuite/linux_fakebin/git
+6
-0
test_all.py
testsuite/test_all.py
+10
-0
No files found.
testsuite/055git_fetch_branch/Manifest.py
0 → 100644
View file @
394291d5
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
fetchto
=
"ipcores"
files
=
[
"../files/gate.vhdl"
]
modules
=
{
"git"
:
"git@test.org:tester/module1.git::my_branch"
}
testsuite/056git_fetch_rev/Manifest.py
0 → 100644
View file @
394291d5
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
fetchto
=
"ipcores"
files
=
[
"../files/gate.vhdl"
]
modules
=
{
"git"
:
"git@test.org:tester/module1.git@@abcd567"
}
testsuite/linux_fakebin/git
View file @
394291d5
...
...
@@ -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
)
...
...
testsuite/test_all.py
View file @
394291d5
...
...
@@ -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'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment