Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tests?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
CoderMan
Apprentice
Apprentice


Joined: 10 Aug 2009
Posts: 173

PostPosted: Sat Aug 14, 2010 8:05 pm    Post subject: tests? Reply with quote

I was wondering what the "test" use flag does? Is that to run application unit tests during build? Flag description given is:

Code:
Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore


So then, what does "FEATURES=test" do?
_________________
Like computers but don't like programming? Then you missed the whole point.
frigidcode.com
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Sat Aug 14, 2010 9:01 pm    Post subject: Reply with quote

FEATURES=test directs Portage to run the package tests. USE=test is present so that packages which have test-only dependencies can express those dependencies in the ebuild like so:
Code:
DEPEND="
    sys-devel/flex
    sys-devel/bison
    test? ( dev-tcltk/expect )"
Such a construct says that you need flex and bison always, and that if you want to run the tests, you also need expect. You might see this on a package which provides a shell with its own command language and uses expect to verify that the correct output is generated for various inputs.
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sun Aug 15, 2010 5:03 am    Post subject: Reply with quote

FEATURES="test" usually runs "make test" during build. Ideally this should always succeed, but there are some packages for which the test suite will fail, so in current state it's probably only useful for developers. However, if you're willing to help fixing the test failures, that's a nice way to contribute to Gentoo.
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
alistair
Retired Dev
Retired Dev


Joined: 15 Jul 2005
Posts: 869

PostPosted: Tue Aug 17, 2010 3:03 am    Post subject: Reply with quote

phajdan.jr wrote:
FEATURES="test" usually runs "make test" during build. Ideally this should always succeed, but there are some packages for which the test suite will fail, so in current state it's probably only useful for developers. However, if you're willing to help fixing the test failures, that's a nice way to contribute to Gentoo.


A very very nice way. Especially if you can fix the failing tests. (Or at least figure out why they are failing)
_________________
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum