From bce8144a480e815cbb19e729bbf4afc5d802d8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 20 Nov 2021 18:57:31 -0300 Subject: [PATCH] ecl: enable tests --- srcpkgs/ecl/patches/fix-tests.patch | 15 +++++++++++++++ srcpkgs/ecl/template | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 srcpkgs/ecl/patches/fix-tests.patch diff --git a/srcpkgs/ecl/patches/fix-tests.patch b/srcpkgs/ecl/patches/fix-tests.patch new file mode 100644 index 000000000000..1705be9681d6 --- /dev/null +++ b/srcpkgs/ecl/patches/fix-tests.patch @@ -0,0 +1,15 @@ +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))) + diff --git a/srcpkgs/ecl/template b/srcpkgs/ecl/template index 2f13da4003f4..220a97da6c8c 100644 --- a/srcpkgs/ecl/template +++ b/srcpkgs/ecl/template @@ -20,3 +20,10 @@ if [ "$CROSS_BUILD" ]; then hostmakedepends+=" ecl" configure_args+=" --with-cross-config=${XBPS_SRCPKGDIR}/ecl/files/cross_config" fi + +pre_check() { + export ECLDIR=$wrksrc/build/ + export LD_LIBRARY_PATH=$wrksrc/build/ + export TEST_IMAGE=$wrksrc/build/bin/ecl + make_check_args="ECL=$TEST_IMAGE" +}