32 | | echo " -t [options] <files|dir>" |
33 | | echo " -- test examples in .py, .pyx, .sage or .tex files" |
34 | | echo " options:" |
35 | | echo " -long -- include lines with the phrase 'long time'" |
36 | | echo " -verbose -- print debugging output during the test" |
37 | | echo " -optional -- also test all #optional examples" |
38 | | echo " -only-optional <tag1,...,tagn> -- only run tests" |
39 | | echo " including one of the #optional tags" |
40 | | echo " -randorder[=seed] -- randomize order of tests" |
| 32 | echo " -t [options] <--all|files|dir>" |
| 33 | echo " -- test examples in .py, .pyx, .sage, .tex or .rst files" |
| 34 | echo " selected options:" |
| 35 | echo " --long - include lines with the phrase 'long time'" |
| 36 | echo " --verbose - print debugging output during the test" |
| 37 | echo " --optional - controls which optional tests are run" |
| 38 | echo " --help - show all testing options" |
155 | | echo " -t [options] <files|dir>" |
156 | | echo " -- test examples in .py, .pyx, .sage or .tex files" |
157 | | echo " options:" |
158 | | echo " -long -- include lines with the phrase 'long time'" |
159 | | echo " -verbose -- print debugging output during the test" |
160 | | echo " -optional -- also test all #optional examples" |
161 | | echo " -only-optional <tag1,...,tagn> -- only run tests" |
162 | | echo " including one of the #optional tags" |
163 | | echo " -randorder[=seed] -- randomize order of tests" |
164 | | echo " -tnew [...] -- like -t above, but only tests files modified since" |
165 | | echo " last commit" |
| 153 | echo " -t [options] <--all|files|dir>" |
| 154 | echo " -- test examples in .py, .pyx, .sage, .tex or .rst files" |
| 155 | echo " selected options:" |
| 156 | echo " --long - include lines with the phrase 'long time'" |
| 157 | echo " --verbose - print debugging output during the test" |
| 158 | echo " --optional - controls which optional tests are run" |
| 159 | echo " --randorder[=seed] - randomize order of tests" |
| 160 | echo " --new - only test files modified since last commit" |
| 161 | echo " --initial - only show the first failure per block" |
| 162 | echo " --debug - drop into PDB after an unexpected error" |
| 163 | echo " --failed - only test files that failed last test" |
| 164 | echo " --help - show all testing options" |
718 | | if [ "$1" = '-t' -o "$1" = '-bt' ]; then |
719 | | if [ "$1" = '-bt' ]; then |
720 | | build_sage |
721 | | fi |
722 | | if ! [ -f "$DOT_SAGE"/init.sage ]; then |
723 | | echo >&2 "init.sage does not exist ... creating" |
724 | | touch "$DOT_SAGE"/init.sage |
725 | | fi |
726 | | shift |
727 | | SAGE_BANNER="no" |
728 | | sage_setup |
729 | | sage-test "$@" |
730 | | exit $? |
731 | | fi |
732 | | |
733 | | if [ "$1" = '-tp' -o "$1" = '-btp' ]; then |
734 | | if [ "$1" = '-btp' ]; then |
735 | | build_sage |
736 | | fi |
737 | | if ! [ -f "$DOT_SAGE"/init.sage ]; then |
738 | | echo >&2 "init.sage does not exist ... creating" |
739 | | touch "$DOT_SAGE"/init.sage |
740 | | fi |
741 | | shift |
742 | | SAGE_BANNER="no" |
743 | | sage_setup |
744 | | sage-ptest "$@" |
745 | | exit $? |
| 717 | if [ "$1" = '-t' -o "$1" = '-bt' -o "$1" = '-tp' -o "$1" = '-btp' ]; then |
| 718 | if [ "$1" = '-bt' -o "$1" = '-btp' ]; then |
| 719 | build_sage |
| 720 | fi |
| 721 | if [ ! -f "$DOT_SAGE"/init.sage ]; then |
| 722 | echo >&2 "init.sage does not exist ... creating" |
| 723 | touch "$DOT_SAGE"/init.sage |
| 724 | fi |
| 725 | SAGE_BANNER="no" |
| 726 | sage_setup |
| 727 | if [ "$1" = '-tp' -o "$1" = '-btp' ]; then |
| 728 | shift |
| 729 | exec sage-runtests -p "$@" |
| 730 | else |
| 731 | shift |
| 732 | exec sage-runtests "$@" |
| 733 | fi |