summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-03-29 10:38:25 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-03-29 10:38:25 +0300
commitd97030358923bc5b281a95c34a83cb10b9106977 (patch)
tree29c4df2d4dba50228e42152feaec4eecf239db89
parent5a4d0a653146442f9a17ebf1485dd89e8ab84dc4 (diff)
downloadguix-d97030358923bc5b281a95c34a83cb10b9106977.tar.gz
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.
-rw-r--r--gnu/packages/audio.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index badeecd7b0..32ca4d65e8 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