-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Unai Martinez-Corral <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from pytest import mark | ||
from sys import stdout, stderr | ||
|
||
from subprocess import check_call | ||
|
||
|
||
@mark.xfail | ||
@mark.parametrize("wrapper", ['place', 'route', 'synth', 'write-fasm']) | ||
def test_wrapper(wrapper): | ||
print(f"\n::group::Test {wrapper}") | ||
stdout.flush() | ||
stderr.flush() | ||
try: | ||
check_call(f"f4pga-{wrapper}") | ||
finally: | ||
print("\n::endgroup::") | ||
|
||
|
||
@mark.xfail | ||
@mark.parametrize( | ||
"wrapper", | ||
[ | ||
'symbiflow_generate_constraints', | ||
'symbiflow_pack', | ||
'symbiflow_place', | ||
'symbiflow_route', | ||
'symbiflow_synth', | ||
'symbiflow_write_bitstream', | ||
'symbiflow_write_fasm', | ||
'symbiflow_write_xml_rr_graph', | ||
'vpr_common', | ||
'symbiflow_analysis', | ||
'symbiflow_repack', | ||
'symbiflow_generate_bitstream', | ||
'symbiflow_generate_libfile', | ||
'ql_symbiflow' | ||
] | ||
) | ||
def test_shell_wrapper(wrapper): | ||
print(f"\n::group::Test {wrapper}") | ||
stdout.flush() | ||
stderr.flush() | ||
try: | ||
check_call(f"{wrapper}") | ||
finally: | ||
print("\n::endgroup::") |