Hi there (xpost to both Adélie and Alpine dev lists),
There are seven packages that we (Adélie) ship with tests enabled. We
do not know if Alpine would be able to use them, however, due to some
really bizarre problems we've encountered:
The test suite's Perl uses an outdated form of regular expression that
cause modern Perl to crash. There are also assumptions about the libc
that do not hold in musl. For this reason, we have two very large
patches to make the tests pass. I am not sure if these are acceptable.
The test suite was disabled on 21 September with a commit log message
"disable testsuite, blocking builders on multiple archs". We haven't
had any issues with it on x86, x86_64, ppc, or ppc64. Are there any
logs about what happened? I would be willing to dig in.
The test suite requires the builders to have a sysctl set:
kernel.core_pattern = core.%p
Otherwise, the test fails because 'core' is overwritten during the test
of handling core dumps.
The test suite takes about two hours on our builders. The fastest was
ppc64, 1h48m; next was x86_64, 2h3m; next was ppc at 2h4m; last was x86
It does pass.
We ported the test suite to Python 3, rewriting large parts of it in the
process. We have not started a conversation upstream to determine if
this will can be merged or not.
The tzdata package needs 'sp', a SGML validator from the mid 90s. I
spent a full day making it compile with a modern compiler. Since it
needs the w3.org
DTDs as well, I had to override www.w3.org
/etc/hosts; they throttle requests to take 5 minutes due to lots of
spurious bot traffic trying to download the DTD files.
The comment on Alpine's side is that "As of 5.4.2 - 3 tests fails". We
have four tests failing, and we work around that by disabling them:
+ # Does not work with musl due to UTF-8
+ rm "$builddir"/Test/A03quoting.ztst
+ # Does not work with musl due to locale
+ rm "$builddir"/Test/B03print.ztst
+ # Not guaranteed to work portably (requires atime)
+ rm "$builddir"/Test/C02cond.ztst
+ # PowerPC-specific failure
+ rm "$builddir"/Test/V09datetime.ztst
We will maintain our own copies of the packages that have test suites
that Alpine is not willing to merge.
A. Wilcox (awilfox)
Project Lead, Adélie Linux