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\\]")
|
(("\\[FindOsvvmSettingsDirectory\\]")
|
||||||
" \"\" "))))
|
" \"\" "))))
|
||||||
(add-after 'fix-scripts 'check
|
(add-after 'fix-scripts 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(setenv "OSVVM_DIR" (getcwd))
|
(when tests?
|
||||||
(setenv "OSVVM_MUST_BUILD" (getcwd))
|
(setenv "OSVVM_DIR" (getcwd))
|
||||||
(invoke "tclsh"
|
(setenv "OSVVM_MUST_BUILD" (getcwd))
|
||||||
(string-append #$(this-package-native-input "nvc")
|
(invoke "tclsh"
|
||||||
"/test/test-osvvm.tcl")))))))
|
(string-append #$(this-package-native-input "nvc")
|
||||||
|
"/test/test-osvvm.tcl"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list nvc tcl tcllib which))
|
(list nvc tcl tcllib which))
|
||||||
(native-search-paths
|
(native-search-paths
|
||||||
|
@ -1434,6 +1435,8 @@ verification.")
|
||||||
(base32 "1kn18ibvm7bzdyw2d914284wriravyh5qwfarj06pb052x1yblyx"))))
|
(base32 "1kn18ibvm7bzdyw2d914284wriravyh5qwfarj06pb052x1yblyx"))))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments osvvm)
|
(substitute-keyword-arguments (package-arguments osvvm)
|
||||||
|
((#:tests? _ #t)
|
||||||
|
#f)
|
||||||
((#:phases phases #~%standard-phases)
|
((#:phases phases #~%standard-phases)
|
||||||
#~(modify-phases #$phases
|
#~(modify-phases #$phases
|
||||||
(delete 'fix-scripts)))))))
|
(delete 'fix-scripts)))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue