Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] ecl: enable tests
@ 2021-11-20 22:31 tornaria
  2021-11-21  4:36 ` ericonr
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tornaria @ 2021-11-20 22:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1146 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages ecl
https://github.com/void-linux/void-packages/pull/34175

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).

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 acosh(-infinity))

I lack the energy to look at this and my lisp-fu is almost nil. I was hoping that everything would pass but... (what can we expect from a test suite that it's not easy to run...)

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.

I'm not revbumping b/c this should not change anything at all in the installed files.

cc: @knusbaum

A patch file from https://github.com/void-linux/void-packages/pull/34175.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ecl-34175.patch --]
[-- Type: text/x-diff, Size: 1903 bytes --]

From bce8144a480e815cbb19e729bbf4afc5d802d8e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
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"
+}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ecl: enable tests
  2021-11-20 22:31 [PR PATCH] ecl: enable tests tornaria
@ 2021-11-21  4:36 ` ericonr
  2021-11-21  4:37 ` ericonr
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-11-21  4:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/34175#issuecomment-974754555

Comment:
I think including all the info from the PR description in the commit message is the right thing to do.

A comment above `pre_check` explaining that some tests still fail but they don't error out and kill the build procedure is probably good as well

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ecl: enable tests
  2021-11-20 22:31 [PR PATCH] ecl: enable tests tornaria
  2021-11-21  4:36 ` ericonr
@ 2021-11-21  4:37 ` ericonr
  2021-11-21 12:45 ` [PR PATCH] [Updated] " tornaria
  2021-11-21 17:50 ` [PR PATCH] [Merged]: " ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-11-21  4:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/34175#issuecomment-974754623

Comment:
Also please quote the `depends` line.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Updated] ecl: enable tests
  2021-11-20 22:31 [PR PATCH] ecl: enable tests tornaria
  2021-11-21  4:36 ` ericonr
  2021-11-21  4:37 ` ericonr
@ 2021-11-21 12:45 ` tornaria
  2021-11-21 17:50 ` [PR PATCH] [Merged]: " ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: tornaria @ 2021-11-21 12:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages ecl
https://github.com/void-linux/void-packages/pull/34175

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).

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 acosh(-infinity))

I lack the energy to look at this and my lisp-fu is almost nil. I was hoping that everything would pass but... (what can we expect from a test suite that it's not easy to run...)

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.

I'm not revbumping b/c this should not change anything at all in the installed files.

cc: @knusbaum

A patch file from https://github.com/void-linux/void-packages/pull/34175.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ecl-34175.patch --]
[-- Type: text/x-diff, Size: 1903 bytes --]

From bce8144a480e815cbb19e729bbf4afc5d802d8e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
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"
+}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Merged]: ecl: enable tests
  2021-11-20 22:31 [PR PATCH] ecl: enable tests tornaria
                   ` (2 preceding siblings ...)
  2021-11-21 12:45 ` [PR PATCH] [Updated] " tornaria
@ 2021-11-21 17:50 ` ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-11-21 17:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 997 bytes --]

There's a merged pull request on the void-packages repository

ecl: enable tests
https://github.com/void-linux/void-packages/pull/34175

Description:
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).

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 acosh(-infinity))

I lack the energy to look at this and my lisp-fu is almost nil. I was hoping that everything would pass but... (what can we expect from a test suite that it's not easy to run...)

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.

I'm not revbumping b/c this should not change anything at all in the installed files.

cc: @knusbaum

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-21 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-20 22:31 [PR PATCH] ecl: enable tests tornaria
2021-11-21  4:36 ` ericonr
2021-11-21  4:37 ` ericonr
2021-11-21 12:45 ` [PR PATCH] [Updated] " tornaria
2021-11-21 17:50 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).