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
6be11c94
Commit
6be11c94
authored
May 31, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite: improve testing of gitsm
parent
1a91c34f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
1 deletion
+38
-1
Manifest.py
testsuite/026gitsm_fetch/Manifest.py
+9
-0
git
testsuite/linux_fakebin/git
+12
-1
Manifest.py
testsuite/modules/module2/Manifest.py
+1
-0
gitmodules
testsuite/modules/module2/gitmodules
+2
-0
mod1.vhdl
testsuite/modules/module2/mod1.vhdl
+9
-0
test_all.py
testsuite/test_all.py
+5
-0
No files found.
testsuite/026gitsm_fetch/Manifest.py
0 → 100644
View file @
6be11c94
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
fetchto
=
"ipcores"
files
=
[
"../files/gate.vhdl"
]
modules
=
{
"gitsm"
:
"git@test.org:tester/module2.git"
}
testsuite/linux_fakebin/git
View file @
6be11c94
...
...
@@ -5,11 +5,13 @@ import shutil
argv
=
sys
.
argv
[
1
:]
# For debugging...
#sys.stderr.write("fake git: {}\n".format(argv))
if
len
(
argv
)
==
0
:
print
(
"fake git version 0.0"
)
sys
.
exit
(
1
)
if
argv
[
0
]
==
'clone'
:
print
(
"fake git clone: {}"
.
format
(
argv
[
1
:]))
if
len
(
argv
)
==
2
:
# Get the basename of the module
name
=
argv
[
1
]
...
...
@@ -20,6 +22,9 @@ if argv[0] == 'clone':
print
(
"fake git cloning {} from {}"
.
format
(
name
,
modpath
))
# Copy all the files
shutil
.
copytree
(
modpath
,
name
)
if
os
.
path
.
exists
(
os
.
path
.
join
(
name
,
'gitmodules'
)):
shutil
.
move
(
os
.
path
.
join
(
name
,
'gitmodules'
),
os
.
path
.
join
(
name
,
'.gitmodules'
))
sys
.
exit
(
0
)
else
:
print
(
"unhandled fake git clone"
)
...
...
@@ -29,6 +34,12 @@ elif argv[0] == 'submodule':
sys
.
exit
(
0
)
elif
argv
[
1
:]
==
[
'update'
,
'--recursive'
]:
sys
.
exit
(
0
)
elif
argv
==
[
'config'
,
'-f'
,
'.gitmodules'
,
'--list'
]:
sys
.
stdout
.
write
(
open
(
'.gitmodules'
,
'r'
)
.
read
())
sys
.
exit
(
0
)
elif
argv
==
[
'rev-parse'
,
'--show-toplevel'
]:
print
(
".."
)
print
(
"fake git unknown command: {}"
.
format
(
argv
))
sys
.
exit
(
1
)
testsuite/modules/module2/Manifest.py
0 → 100644
View file @
6be11c94
files
=
[
'mod1.vhdl'
]
testsuite/modules/module2/gitmodules
0 → 100644
View file @
6be11c94
submodule.modules/module1.url=http://test.org/module1.git
submodule.modules/module1.path=ipcores/module1
testsuite/modules/module2/mod1.vhdl
0 → 100644
View file @
6be11c94
entity
mod1
is
port
(
i
:
bit
;
o
:
out
bit
);
end
mod1
;
architecture
arch
of
mod1
is
begin
o
<=
i
;
end
arch
;
testsuite/test_all.py
View file @
6be11c94
...
...
@@ -144,6 +144,11 @@ def test_vlog_parser():
def
test_vlog_parser025
():
run_compare
(
path
=
"025vlog_parser"
)
def
test_gitsm_fetch026
():
with
Config
(
path
=
"026gitsm_fetch"
)
as
_
:
hdlmake
.
__main__
.
hdlmake
([
'fetch'
])
shutil
.
rmtree
(
'ipcores'
)
@
pytest
.
mark
.
xfail
def
test_xfail
():
"""This is a self-consistency test: the test is known to fail"""
...
...
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