sage tests

18 views
Skip to first unread message

ph h

unread,
Apr 10, 2022, 1:46:48 PM4/10/22
to sage-devel
Dear All,

Please advise if there are any documentation on the tests performed in the Makefile:

TESTALL = ./sage -t --all
PTESTALL = ./sage -t -p --all

# Flags for ./sage -t --all.
# When the documentation is installed, "optional" also includes all tests marked 'sagemath_doc_html',
# see https://trac.sagemath.org/ticket/25345, https://trac.sagemath.org/ticket/26110, and
# https://trac.sagemath.org/ticket/32759
TESTALL_FLAGS = --optional=sage,optional,external

test: all
        $(TESTALL) --logfile=logs/test.log

check: test

testall: all
        $(TESTALL) $(TESTALL_FLAGS) --logfile=logs/testall.log

testlong: all
        $(TESTALL) --long --logfile=logs/testlong.log

testalllong: all
        $(TESTALL) --long $(TESTALL_FLAGS) --logfile=logs/testalllong.log

ptest: all
        $(PTESTALL) --logfile=logs/ptest.log

A simple 'make test' ended with:

----------------------------------------------------------------------
sage -t --random-seed=155907586838286474500183055218837555767 src/sage/matrix/matrix_mod2_dense.pyx  # Timed out
sage -t --random-seed=155907586838286474500183055218837555767 src/sage/tests/cmdline.py  # Timed out
sage -t --random-seed=155907586838286474500183055218837555767 src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py  # Killed due to kill signal
----------------------------------------------------------------------
Total time for all tests: 28572.2 seconds
    cpu time: 17566.7 seconds
    cumulative wall time: 21777.8 seconds
Features detected for doctesting: 4ti2,dvipng,graphviz,imagemagick,lrslib,nauty,palp,pandoc,pdf2svg,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sagemath_doc_html,sphinx
Pytest is not installed, skip checking tests that rely on it.
make: *** [Makefile:235: test] Error 20
:~/sage-9.6/sage$

There was also this message, "cysignals fork: Cannot allocate memory" in the test.log:

python3(_PyRun_SimpleFileObject+0x326)[0x47481a]
python3(_PyRun_AnyFileObject+0x86)[0x4744d3]
python3[0x4221e0]
python3(Py_BytesMain+0x2d)[0x60360d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f31daf540b3]
python3(_start+0x2e)[0x60351e]
------------------------------------------------------------------------
cysignals fork: Cannot allocate memory

**********************************************************************
sage -t --random-seed=155907586838286474500183055218837555767 src/sage/matrix/matrix_modn_dense_double.pxd
    [0 tests, 0.00 s]

What does that "cysignals fork: Cannot allocate memory" mean?

Is there anything else besides 'pytest' that need be installed to run all these tests?

Would these two cover all test cases:

testalllong: all
        $(TESTALL) --long $(TESTALL_FLAGS) --logfile=logs/testalllong.log

ptest: all
        $(PTESTALL) --logfile=logs/ptest.log

Thank you for your help.

Regards,

phiho

Reply all
Reply to author
Forward
0 new messages