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
2775030d
Commit
2775030d
authored
Jun 11, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more tests.
parent
65575c96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
Manifest.py
testsuite/065fetch_pre_post/Manifest.py
+12
-0
test_all.py
testsuite/test_all.py
+13
-0
No files found.
testsuite/065fetch_pre_post/Manifest.py
0 → 100644
View file @
2775030d
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
fetchto
=
"ipcores"
files
=
[
"../files/gate.vhdl"
]
modules
=
{
"git"
:
"git@test.org:tester/module1.git"
}
fetch_pre_cmd
=
"echo pre"
fetch_post_cmd
=
"echo post"
testsuite/test_all.py
View file @
2775030d
...
...
@@ -201,6 +201,16 @@ def test_gitsm_fetch():
hdlmake
.
__main__
.
hdlmake
([
'clean'
])
shutil
.
rmtree
(
'ipcores'
)
def
test_git_fetch_cmds
():
with
Config
(
path
=
"065fetch_pre_post"
)
as
_
:
hdlmake
.
__main__
.
hdlmake
([
'fetch'
])
shutil
.
rmtree
(
'ipcores'
)
def
test_err_fetch
():
with
pytest
.
raises
(
SystemExit
)
as
_
:
run
([],
path
=
"065fetch_pre_post"
)
assert
False
def
test_xci
():
run_compare
(
path
=
"023xci"
)
...
...
@@ -359,6 +369,9 @@ def test_err_loglevel():
def
test_err_noaction
():
run
([
'--log'
,
'warning'
],
path
=
"002msim"
)
def
test_all_files
():
run
([
'-a'
,
'makefile'
],
path
=
"002msim"
)
@
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