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
b7e4addd
Commit
b7e4addd
authored
Jun 07, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests.
parent
c39888bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
Manifest.py
testsuite/048err_two_manifest/Manifest.py
+7
-0
manifest.py
testsuite/048err_two_manifest/manifest.py
+7
-0
empty
testsuite/049err_no_manifest/empty
+0
-0
test_all.py
testsuite/test_all.py
+12
-0
No files found.
testsuite/048err_two_manifest/Manifest.py
0 → 100644
View file @
b7e4addd
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
files
=
[
"../files/gate.vhdl"
]
testsuite/048err_two_manifest/manifest.py
0 → 100644
View file @
b7e4addd
action
=
"simulation"
sim_tool
=
"modelsim"
top_module
=
"gate"
files
=
[
"../files/gate.vhdl"
]
testsuite/049err_no_manifest/empty
0 → 100644
View file @
b7e4addd
testsuite/test_all.py
View file @
b7e4addd
...
...
@@ -242,6 +242,18 @@ def test_abs_local():
run
([],
path
=
"047err_abs_local"
)
assert
False
def
test_two_manifest
():
d
=
"048err_two_manifest"
# Create manifest.py dynamically so that you can clone the
# repo on windows/macosx
shutil
.
copy
(
d
+
"/Manifest.py"
,
d
+
"/manifest.py"
)
with
pytest
.
raises
(
SystemExit
)
as
_
:
run
([],
path
=
d
)
def
test_no_manifest
():
with
pytest
.
raises
(
SystemExit
)
as
_
:
run
([],
path
=
"049err_no_manifest"
)
@
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