mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
9e299926c6
commit
fa7440a30c
1 changed files with 9 additions and 6 deletions
|
@ -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)))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue