[Exherbo-dev] expecting_tests()

Bo Ørsted Andresen zlin at exherbo.org
Thu Jul 21 00:12:23 BST 2011


In Paludis 0.64.0 and above a expecting_tests() was added to exheres-0. Make 
sure your Paludis is newer than 0.64.0.

- expecting_tests:
    Query whether test phases are expected to be run. This allows you to tell
    a configure script whether a test dependency is needed, or to disable
    building of tests in the compile phase if they aren’t going to run later.

For more details see:

http://exherbo.org/docs/exheres-for-smarties.html#exheres0list_functionsbash

Today the Paludis exheres has started using it for allowing gtest to be a 
test: dependency rather than a build: dependency:

    econf $(expecting_tests && echo --enable-gtest || echo --disable-gtest)

-- 
Bo Andresen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.exherbo.org/pipermail/exherbo-dev/attachments/20110721/d4ac1b90/attachment.pgp>


More information about the Exherbo-dev mailing list