Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to test all but a couple files

It's fun and easy to test the Sage library by directory.

./sage -t devel/sage/sage/module_1/

The same is true if you only need to test a couple files.

./sage -t devel/sage/sage/module_1/foo.py devel/sage/sage/module_1/bar.py

But it's not so fun and easy to test all but a couple files in a module. Here, I test all but the last file in a module. Imagine $n>4$, and the names not being so easy to write down.

./sage -t devel/sage/sage/module_1/file_1.py devel/sage/sage/module_1/file_2.py <snip> devel/sage/sage/module_1/file_n-1.py

What I want to know is whether there is an easy way to do the above, along the lines of

./sage -t devel/sage/sage/module_1/ -not devel/sage/sage/module_1/file_n.py

Probably one can write some script asking not to test that, or whatever, but that is too much work, because I'd constantly be writing scripts. Is there any way to massage the arguments to ./sage -t to do this easily?