Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC
Commits
3164b2c7
Commit
3164b2c7
authored
Jul 08, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tst: make --bitstream optional
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
e5879288
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
conftest.py
pytest/conftest.py
+5
-4
test_dma.py
pytest/test_dma.py
+2
-0
No files found.
pytest/conftest.py
View file @
3164b2c7
...
...
@@ -16,12 +16,13 @@ def pytest_addoption(parser):
parser
.
addoption
(
"--pci-id"
,
required
=
True
,
help
=
"SPEC PCI Identifier"
)
parser
.
addoption
(
"--bitstream"
,
required
=
Tru
e
,
help
=
"SPEC bitstream to be tested"
)
default
=
Non
e
,
help
=
"SPEC bitstream to be tested"
)
def
pytest_configure
(
config
):
pytest
.
pci_id
=
config
.
getoption
(
"--pci-id"
)
pytest
.
cfg_bitstream
=
config
.
getoption
(
"--bitstream"
)
if
pytest
.
cfg_bitstream
is
not
None
:
spec
=
PySPEC
(
pytest
.
pci_id
)
spec
.
program_fpga
(
pytest
.
cfg_bitstream
)
del
spec
pytest/test_dma.py
View file @
3164b2c7
...
...
@@ -209,6 +209,8 @@ class TestDma(object):
for
i
in
range
(
1000000
):
assert
data
==
dma
.
read
(
0
,
len
(
data
))
@
pytest
.
mark
.
skipif
(
pytest
.
cfg_bitstream
,
reason
=
"We need a bitstream to reflash"
)
def
test_dma_reg_word
(
self
,
spec
):
"""
Regression test.
...
...
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