gnu: osvvm: Conditionnally run tests.

* gnu/packages/electronics.scm (osvvm)[arguments]: Use #:tests? in check
* gnu/packages/electronics.scm (osvvm-2023.04)[arguments]: Disable #:tests?.

Change-Id: Icca5d7158abe8339e00be14d0672b2797a8a36ea
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
This commit is contained in:
Cayetano Santos 2025-10-01 16:27:47 +02:00 committed by Gabriel Wicki
parent 9e299926c6
commit fa7440a30c
No known key found for this signature in database
GPG key ID: CC98E9F04330FD7F

View file

@ -1393,12 +1393,13 @@ GUI for sigrok.")
(("\\[FindOsvvmSettingsDirectory\\]")
" \"\" "))))
(add-after 'fix-scripts 'check
(lambda _
(setenv "OSVVM_DIR" (getcwd))
(setenv "OSVVM_MUST_BUILD" (getcwd))
(invoke "tclsh"
(string-append #$(this-package-native-input "nvc")
"/test/test-osvvm.tcl")))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "OSVVM_DIR" (getcwd))
(setenv "OSVVM_MUST_BUILD" (getcwd))
(invoke "tclsh"
(string-append #$(this-package-native-input "nvc")
"/test/test-osvvm.tcl"))))))))
(native-inputs
(list nvc tcl tcllib which))
(native-search-paths
@ -1434,6 +1435,8 @@ verification.")
(base32 "1kn18ibvm7bzdyw2d914284wriravyh5qwfarj06pb052x1yblyx"))))
(arguments
(substitute-keyword-arguments (package-arguments osvvm)
((#:tests? _ #t)
#f)
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(delete 'fix-scripts)))))))