mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-vunit: Add example checks.
* gnu/packages/electronics.scm (python-vunit)[arguments]: Complete run-examples #:phase. Change-Id: I7e9f3ea1e80f8622fa3206e743512683ca325dc7 Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
parent
5d113af08c
commit
c0faac0d84
1 changed files with 25 additions and 8 deletions
|
@ -1726,6 +1726,10 @@ to enforce it.")
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:modules '((guix build pyproject-build-system)
|
||||||
|
(guix build utils)
|
||||||
|
(ice-9 ftw)
|
||||||
|
(srfi srfi-26))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-ghdl-jit
|
(add-after 'unpack 'fix-ghdl-jit
|
||||||
|
@ -1751,14 +1755,27 @@ to enforce it.")
|
||||||
(string-append site-packages "osvvm")))))
|
(string-append site-packages "osvvm")))))
|
||||||
(add-after 'check 'run-examples
|
(add-after 'check 'run-examples
|
||||||
;; Run examples as an extra check.
|
;; Run examples as an extra check.
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(with-directory-excursion "examples/vhdl"
|
(with-directory-excursion "examples/vhdl"
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (dir)
|
(lambda (dir)
|
||||||
(invoke "python3" (string-append dir "/run.py")))
|
(invoke "python3" (string-append dir "/run.py"))
|
||||||
(list
|
(delete-file-recursively "vunit_out"))
|
||||||
"array" "check" "composite_generics" "json4vhdl" "logging"
|
(scandir "."
|
||||||
"logging" "uart" "vhdl_configuration"))))))
|
(negate
|
||||||
|
(cut member <>
|
||||||
|
'("coverage" ;unsupported feature in nvc
|
||||||
|
"data_types" ;no run.py
|
||||||
|
"docker_runall.sh" ;not a test
|
||||||
|
"vivado" ;requires external tool
|
||||||
|
;; Fails with nvc
|
||||||
|
"array_axis_vcs"
|
||||||
|
"osvvm_log_integration"
|
||||||
|
"run"
|
||||||
|
"third_party_integration"
|
||||||
|
"user_guide"
|
||||||
|
"." ".."))))))))))
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; Skip lint tests which require python-pycodestyle, python-pylint and
|
;; Skip lint tests which require python-pycodestyle, python-pylint and
|
||||||
;; python-mypy to reduce closoure size; some lint test fails, see
|
;; python-mypy to reduce closoure size; some lint test fails, see
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue