diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-03-11 15:26:19 +0100 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-03-11 15:27:36 +0100 |
| commit | 894349cec86bd2d471d9d37e43f349c9ec95bcd1 (patch) | |
| tree | 4192f4e8863d53b9715c662549e8d18e73452f27 /gnu | |
| parent | 80d798b252d6cba7ea0a9fb6fd3cd8bd1d0c796d (diff) | |
gnu: python-vunit: Implement parallel tests.
* gnu/packages/electronics.scm (python-vunit)[arguments]: Set parallel
flag in ’run-examples #:phase.
Change-Id: If3460b4715f244fd52262f8a67cbc2e88a2dfafc
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/electronics.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 796a35e380b..ab759462b15 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -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 |
