diff options
author | Marius Bakke <mbakke@fastmail.com> | 2016-09-09 01:51:23 +0100 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-09-13 01:12:42 -0400 |
commit | 4fba38db9cd056b3484d8e3d2dcffc34df7af7f9 (patch) | |
tree | 9487d94a59182192375123bb779b60b7f83b6dfc | |
parent | 8eaf53e36683198522d71d7c60e258678be39416 (diff) | |
download | guix-4fba38db9cd056b3484d8e3d2dcffc34df7af7f9.tar.gz |
gnu: dlib: Disable failing tests.
* gnu/packages/machine-learning.scm (dlib)[arguments]: Add phase 'disable-failing-tests' for tests that are known not to work in the current release. [inputs]: Add lapack. Signed-off-by: Leo Famulari <leo@famulari.name>
-rw-r--r-- | gnu/packages/machine-learning.scm | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index e94ffdd74f..b663b4ffcb 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -499,6 +499,29 @@ single hidden layer, and for multinomial log-linear models.") (substitute* "dlib/config.h" (("^//#define DLIB_DISABLE_ASSERTS") "#define DLIB_DISABLE_ASSERTS")) #t)) + (add-after 'disable-asserts 'disable-failing-tests + (lambda _ + ;; One test times out on MIPS, so we need to disable it. + ;; The rest is known to fail on non-x86_64 platforms in the current release. + ;; Some have been fixed in git; this list should be readjusted next update. + (let* ((system ,(or (%current-target-system) + (%current-system))) + (disabled-tests (cond + ((string-prefix? "mips64" system) + '("object_detector" ; timeout + "data_io")) + ((string-prefix? "armhf" system) + '("learning_to_track" "max_cost_assignment")) + ((string-prefix? "i686" system) + '("optimization" "matrix2" "mpc")) + (else '())))) + ;; The following test fails due a bug in openblas < 0.2.18. + (append! disabled-tests '("empirical_map")) + (for-each + (lambda (test) + (substitute* "dlib/test/makefile" + (((string-append "SRC \\+= " test "\\.cpp")) "")) #t) + disabled-tests)))) (replace 'check (lambda _ ;; No test target, so we build and run the unit tests here. @@ -514,7 +537,7 @@ single hidden layer, and for multinomial log-linear models.") `(("pkg-config" ,pkg-config))) (inputs `(("giflib" ,giflib) - ;("lapack" ,lapack) XXX lapack here causes test failures in some setups. + ("lapack" ,lapack) ("libjpeg" ,libjpeg) ("libpng" ,libpng) ("libx11" ,libx11) |