Skip to content

Commit 446ed05

Browse files
hebastotomt1664
authored andcommitted
guix: Fix osslsigncode tests
1 parent 16ad3fd commit 446ed05

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

contrib/guix/manifest.scm

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
((gnu packages bash) #:select (bash-minimal))
33
(gnu packages bison)
44
((gnu packages certs) #:select (nss-certs))
5+
((gnu packages check) #:select (libfaketime))
56
((gnu packages cmake) #:select (cmake-minimal))
67
(gnu packages commencement)
78
(gnu packages compression)
@@ -213,7 +214,17 @@ and abstract ELF, PE and MachO formats.")
213214
(base32
214215
"1j47vwq4caxfv0xw68kw5yh00qcpbd56d7rq6c483ma3y7s96yyz"))))
215216
(build-system cmake-build-system)
216-
(inputs (list openssl))
217+
(arguments
218+
(list
219+
#:phases
220+
#~(modify-phases %standard-phases
221+
(replace 'check
222+
(lambda* (#:key tests? #:allow-other-keys)
223+
(if tests?
224+
(invoke "faketime" "-f" "@2025-01-01 00:00:00" ;; Tests fail after 2025.
225+
"ctest" "--output-on-failure" "--no-tests=error")
226+
(format #t "test suite not run~%")))))))
227+
(inputs (list libfaketime openssl))
217228
(home-page "https://github.com/mtrojnar/osslsigncode")
218229
(synopsis "Authenticode signing and timestamping tool")
219230
(description "osslsigncode is a small tool that implements part of the

0 commit comments

Comments
 (0)