Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
canbus
CTU CAN FD IP Core
Commits
91265ce4
Commit
91265ce4
authored
Jan 27, 2019
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testfw: Add PSL output dir per test to avoid conflicts
parent
26d94315
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
test/testfw/__init__.py
test/testfw/__init__.py
+0
-2
test/testfw/test_common.py
test/testfw/test_common.py
+15
-1
No files found.
test/testfw/__init__.py
View file @
91265ce4
...
...
@@ -127,9 +127,7 @@ def test(obj, config, strict, vunit_args):
for
t
in
tests
:
t
.
add_sources
()
add_flags
(
ui
,
lib
,
build
)
conf_ok
=
[
t
.
configure
()
for
t
in
tests
]
# check for unknown tests
...
...
test/testfw/test_common.py
View file @
91265ce4
...
...
@@ -102,10 +102,24 @@ def add_flags(ui, lib, build) -> None:
elab_flags
.
append
(
"-fpsl"
);
ui
.
set_sim_option
(
"ghdl.elab_flags"
,
elab_flags
)
# Global simulation flags
sim_flags
=
[
"--ieee-asserts=disable-at-0"
]
sim_flags
.
append
(
"--psl-report=psl_coverage.json"
)
ui
.
set_sim_option
(
"ghdl.sim_flags"
,
sim_flags
)
# PSL Coverage file is per-test specific! This must be set to avoid overwriting
# coverage results between tests
log
.
debug
(
"Setting PSL coverage paths"
)
testbenches
=
lib
.
get_test_benches
()
for
testbench
in
testbenches
:
log
.
debug
(
"Testbench:"
)
log
.
debug
(
testbench
.
name
)
tests
=
testbench
.
get_tests
()
log
.
debug
(
"Test cases:"
)
for
test
in
tests
:
log
.
debug
(
test
.
name
)
psl_flag
=
"--psl-report=psl_cov_{}_{}.json"
.
format
(
testbench
.
name
,
test
.
name
)
test
.
set_sim_option
(
"ghdl.sim_flags"
,
[
psl_flag
])
modelsim_init_files
=
get_common_modelsim_init_files
()
ui
.
set_sim_option
(
"modelsim.init_files.after_load"
,
modelsim_init_files
)
...
...
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