1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: python-vunit: Implement parallel tests.

* gnu/packages/electronics.scm (python-vunit)[arguments]: Set parallel
flag in ’run-examples #:phase.

Change-Id: If3460b4715f244fd52262f8a67cbc2e88a2dfafc
This commit is contained in:
Cayetano Santos
2026-03-11 15:26:19 +01:00
parent 80d798b252
commit 894349cec8

View File

@@ -3324,12 +3324,15 @@ to enforce it.")
(string-append site-packages "osvvm")))))
(add-after 'check 'run-examples
;; Run examples as an extra check.
(lambda* (#:key tests? #:allow-other-keys)
(lambda* (#:key tests? parallel-build? #:allow-other-keys)
(when tests?
(with-directory-excursion "examples/vhdl"
(for-each
(lambda (dir)
(invoke "python3" (string-append dir "/run.py"))
(invoke "python3" (string-append dir "/run.py")
"-p" (if parallel-build?
(number->string (parallel-job-count))
"1"))
(delete-file-recursively "vunit_out"))
(scandir "."
(negate