System installations of the sage library may not support "sage -t",
so use the more-reliable "python -m sage.doctest" instead.
check-undefined: $(BUILDDIR)/$(PN).log
@! grep -i 'undefined' $<
check-undefined: $(BUILDDIR)/$(PN).log
@! grep -i 'undefined' $<
-# Use sage to doctest any \sagelisting{}s in SAGE_LISTING_DSTS.
-# The actuall command is ifdef'd so that we can comment out
-# the definition of SAGE_LISTING_DSTS without breaking the
-# default definition of the "check" target.
+# Use SageMath to doctest any \sagelisting{}s in SAGE_LISTING_DSTS.
+# The actual command is ifdef'd so that we can comment out the
+# definition of SAGE_LISTING_DSTS without breaking the default
+# definition of the "check" target. Assumes that the sage library is
+# installed somewhere known to python.
.PHONY: check-sage
check-sage: $(SAGE_LISTING_DSTS)
ifdef SAGE_LISTING_DSTS
.PHONY: check-sage
check-sage: $(SAGE_LISTING_DSTS)
ifdef SAGE_LISTING_DSTS
+ python -m sage.doctest --timeout=0 $^
endif
# Run a suite of checks.
endif
# Run a suite of checks.