guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: wavpack: Enable test suite.


From: guix-commits
Subject: 02/02: gnu: wavpack: Enable test suite.
Date: Mon, 29 Mar 2021 03:39:01 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit d97030358923bc5b281a95c34a83cb10b9106977
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 29 10:38:25 2021 +0300

    gnu: wavpack: Enable test suite.
    
    * gnu/packages/audio.scm (wavpack)[arguments]: Add configure-flag to
    build test program. Use custom 'check phase to run test suite.
---
 gnu/packages/audio.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index badeecd..32ca4d6 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -3270,7 +3270,15 @@ stretching and pitch scaling of audio.  This package 
contains the library.")
     (build-system gnu-build-system)
     (arguments
      '(#:configure-flags
-       (list "--disable-static")))
+       (list "--disable-static"
+             "--enable-tests")
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "./cli/wvtest" "--default" "--short"))
+             #t)))))
     (home-page "https://www.wavpack.com/";)
     (synopsis "Hybrid lossless audio codec")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]