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
faeb6e65
Commit
faeb6e65
authored
Jun 11, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for git with different URL
parent
2f38aa4f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletion
+33
-1
Manifest.py
testsuite/073git_fetch_url/Manifest.py
+9
-0
Manifest.py
testsuite/074git_fetch_url/Manifest.py
+9
-0
git
testsuite/linux_fakebin/git
+5
-1
test_all.py
testsuite/test_all.py
+10
-0
No files found.
testsuite/073git_fetch_url/Manifest.py
0 → 100644
View file @
faeb6e65
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
fetchto
=
"ipcores"
files
=
[
"../files/gate.vhdl"
]
modules
=
{
"git"
:
"git@test.org:tester/module1/"
}
testsuite/074git_fetch_url/Manifest.py
0 → 100644
View file @
faeb6e65
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
fetchto
=
"ipcores"
files
=
[
"../files/gate.vhdl"
]
modules
=
{
"git"
:
"git@test.org:tester/module1"
}
testsuite/linux_fakebin/git
View file @
faeb6e65
...
...
@@ -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
)
...
...
testsuite/test_all.py
View file @
faeb6e65
...
...
@@ -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'
])
...
...
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