mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
community/R: finally run the provided test suite
thanks to upstream tweaks for compatibility with Alpine Linux Co-Authored-By: Jakub Jirutka <jakub@jirutka.cz>
This commit is contained in:
parent
25019c63dc
commit
b282390898
@ -85,10 +85,29 @@ build() {
|
||||
make -C src/nmath/standalone
|
||||
}
|
||||
|
||||
# TODO: Run provided test suite.
|
||||
check() {
|
||||
./bin/R --version
|
||||
./bin/R --slave --vanilla -e 'print("Hello, world!")'
|
||||
# Try running R (and also aid debugging).
|
||||
./bin/R --vanilla -s -e 'sessionInfo(); R_compiled_by(); str(.Machine)'
|
||||
|
||||
case "$CARCH" in
|
||||
# A (non-portable) numerical regression test currently (R 4.4.0)
|
||||
# fails on the aarch64 and s390x runners.
|
||||
# Run at least two basic test suites:
|
||||
aarch64 | s390x)
|
||||
make -C tests test-Examples && make -C tests test-Specific || {
|
||||
tail -v -n 42 tests/*.fail; exit 1
|
||||
}
|
||||
;;
|
||||
*)
|
||||
make check || {
|
||||
tail -v -n 42 tests/*.fail; exit 1
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
# NOTE: EST5EDT-related differences reported for datetime.Rout are known
|
||||
# (see <https://mm.icann.org/pipermail/tz/2024-March/058740.html>
|
||||
# or also <https://bugs.r-project.org/show_bug.cgi?id=16843#c12>)
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user