View previous topic :: View next topic |
Author |
Message |
CoderMan Apprentice
Joined: 10 Aug 2009 Posts: 173
|
Posted: Sat Aug 14, 2010 8:05 pm Post subject: tests? |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Sat Aug 14, 2010 9:01 pm Post subject: |
|
|
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 |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
Posted: Sun Aug 15, 2010 5:03 am Post subject: |
|
|
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 |
|
|
alistair Retired Dev
Joined: 15 Jul 2005 Posts: 869
|
Posted: Tue Aug 17, 2010 3:03 am Post subject: |
|
|
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 |
|
|
|