# optional -- pkg1, pkg2, pkg3
and the tester calls
sage -t [...] -only-optional=pkg4,pkg5,[...]pkg6
then the doctest will be run if {pkg1, pkg2, pkg3} is a nonempty
subset of {pkg4, pkg5, [...] pkg6}. Right now I'm fixing this in the
graphs directory, as I'm getting ready to review some LP patches. But
the list of modules for which words like "requires" and "package" will
be mistaken as required optional spkgs is rather large [1].
Another thing I notice is that there isn't any syntax available for
"run this test if one of the following packages is installed"...
sage/calculus/calculus.py
sage/categories/finite_permutation_groups.py
sage/coding/*
sage/combinat/crystals/crystals.py
sage/combinat/designs/*
sage/combinat/matrices/hadamard_matrix.py
sage/combinat/sf/sf.py
sage/combinat/sloane_functions.py
sage/crypto/mq/mpolynomialsystem.py
sage/databases/*
sage/geometry/*
sage/groups/perm_gps/*
sage/homology/*
sage/interfaces/chomp.py
sage/interfaces/expect.py
sage/interfaces/lie.py
sage/interfaces/matlab.py
sage/interfaces/octave.py
sage/misc/functional.py
sage/numerical/*
sage/plot/animate.py
sage/rings/polynomial/multi_polynomial_libsingular.pyx
sage/schemes/elliptic_curves/padic_lseries.py
sage/symbolic/expression.pyx
sage/symbolic/integration/external.py
sage/symbolic/integration/integral.py
sage/tests/benchmark.py
--
Robert L. Miller
http://www.rlmiller.org/
I could only find mention of it here:
$ ./sage -advanced
...
-t [-verbose] [-long] [-optional] [-only-optional=list,of,tags] <files|dir>
-- test examples in .py, .pyx, .sage or .tex files
-long -- include lines with the phrase 'long time'
-verbose -- print debuging output during the test
-optional -- also test all #optional examples
-only-optional -- only run doctests with
#optional <nonempty subset of tags>
-randorder[=seed] -- randomize order of tests
...
Are not all packages in Sage referred to by the lower case names?
polybori should be written as PolyBoRi, but the standard package in
Sage is all lower case. For consistency, it might be better to keep it
that way for optional and experimental packages.
Dave