From d97030358923bc5b281a95c34a83cb10b9106977 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 29 Mar 2021 10:38:25 +0300 Subject: [PATCH] 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 badeecd7b0..32ca4d65e8 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -3270,7 +3270,15 @@ (define-public wavpack (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