void-packages/srcpkgs/ecl/patches/fix-tests.patch
Gonzalo Tornaría f29a2c78ea ecl: enable tests
The tests for ecl were not running as make check failed to find the
binary (according to upstream one should install it before running
tests, but properly setting some variables makes it work).

OTOH, there's a bunch of tests that fail. Out of 18098 tests there are
around 10 that fail on x86_64 and i686 (the number varies as some
failures are kind of random). On x86_64-musl there are about 30 more
failures but they all seem to be the same (something to do with the
value of acosh(-infinity)).

It's also the case that failures in the test suite will NOT stop make
with an error, so packaging with -Q is not broken.

it is left for the future to fix the failing tests and patch make check
so it actually fails the build.

Not revbumping b/c this does not change anything in the installed files.
2021-11-21 14:50:05 -03:00

15 lines
781 B
Diff

The test config finds the build directory by looking for the file
'BUILD-STAMP'. However, the build system creates 'build-stamp' instead
so it will never be found on a case-sensitive filesystem.
--- a/src/tests/config.lsp.in 2021-02-01 09:59:46.000000000 -0300
+++ b/src/tests/config.lsp.in 2021-11-20 18:12:39.318173405 -0300
@@ -41,7 +41,7 @@
(loop with root = (si::get-library-pathname)
with lib-name = (format nil "../lib/ecl-~A/" (lisp-implementation-version))
for base in (list root (merge-pathnames lib-name root))
- when (or (probe-file (merge-pathnames "./BUILD-STAMP" base))
+ when (or (probe-file (merge-pathnames "./build-stamp" base))
(probe-file (merge-pathnames "./COPYING" base)))
do (return base)))