First time here? Check out the FAQ!

Ask Your Question
1

How to set options to sage -t when running make ptestlong

asked 7 years ago

Sébastien gravatar image

I would like to run make ptestlong with the option --show-skipped set for the sage -t part.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 7 years ago

I think the easiest thing to do is to replicate the command run by make ptestlong and add the options you want: from the main Sage directory, run

./sage -t -p --all --long --logfile=logs/ptestlong.log --show-skipped

Alternatively, you can edit the Makefile, for example adding a new make target:

diff --git a/Makefile b/Makefile
index 9bc643c1c8..4f300f3fed 100644
--- a/Makefile
+++ b/Makefile
@@ -111,6 +111,9 @@ ptestall: all
 ptestlong: all
        $(PTESTALL) --long --logfile=logs/ptestlong.log

+ptestlongshowskipped: all
+       $(PTESTALL) --long --logfile=logs/ptestlongshowskipped.log --show-skipped
+
 ptestalllong: all
        $(PTESTALL) --long --optional=sage,optional,external --logfile=logs/ptestalllong.log

and then run make ptestlongshowskipped.

Preview: (hide)
link

Comments

@jhpalmieri - Yeah, this is the best answer. But I think this has come up before - if you can give this example in the documentation for make test and a link to the sage -t options, that would be really helpful. Cc: me on the ticket and hopefully it will be an easy review :-)

kcrisman gravatar imagekcrisman ( 7 years ago )
1

@kcrisman: see https://trac.sagemath.org/ticket/23363. Is that what you had in mind?

John Palmieri gravatar imageJohn Palmieri ( 7 years ago )

Happy independence from paying for your math software day!

kcrisman gravatar imagekcrisman ( 7 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 373 times

Last updated: Jul 04 '17