1 |
On Sat, 05 Aug 2006 17:14:23 +0200 |
2 |
Sven Köhler <skoehler@×××.de> wrote: |
3 |
|
4 |
> So my question is: |
5 |
> where's the difference between USE="test" and FEATURES="test" ? |
6 |
> |
7 |
> So FEATURES="test" means, that portage runs src_test(), right? |
8 |
|
9 |
Yes. |
10 |
|
11 |
> So what does USE="test" mean? |
12 |
|
13 |
USE="test" is a workaround; portage cannot use FEATUREs in dep |
14 |
strings. So for example, if the test phase needs a separate tarball of |
15 |
data (a common enough occurrence) and the ebuild maintainer wants to |
16 |
download that tarball only if the tests are being run (perhaps the |
17 |
test data is huge), this can only be done with USE flags. |
18 |
|
19 |
Basically, if you set FEATURES="test", add "test" also to your USE |
20 |
flags. USE="test" should never be used for anything other than |
21 |
supporting FEATURES="test". |
22 |
|
23 |
-- |
24 |
Kevin F. Quinn |