File:  [NetBSD Developer Wiki] / wikisrc / projects / project / pkgsrc-test-depends.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Thu Jun 2 05:26:30 2016 UTC (4 years ago) by dholland
Branches: MAIN
CVS tags: HEAD
Add a project entry for TEST_DEPENDS in pkgsrc.

    1: [[!template id=project
    3: title="Separate test depends for pkgsrc"
    5: contact="""
    6: [tech-pkg](
    7: """
    9: category="pkgsrc"
   10: difficulty="medium"
   11: duration="3-6 weeks"
   13: description="""
   15: Right now the pkgsrc packaging for many things does not support
   16: running those things' native test suites.
   17: One of the reasons for this is that those test suites often depend on
   18: additional packages for test infrastructure or test automation.
   19: Sometimes those additional depends cause cycles; sometimes they're
   20: "only" heavyweight; but fairly often adding them as unconditional
   21: BUILD_DEPENDS (or worse, full DEPENDS) has undesirable consequences.
   23: It ought to be possible to have a separate set of TEST_DEPENDS that's
   24: brought in only when one is actually intending to run a test suite.
   25: This is not entirely trivial (or it would have been done long ago)
   26: because it doesn't fit well into the sequence of phases pkgsrc builds
   27: happen in.
   28: Should there be a separate (and late) phase for TEST_DEPENDS, or a
   29: (per-package?) switch in mk.conf to enable test material, or some
   30: other scheme?
   31: What about packages that need to be installed first before their tests
   32: will run?
   33: (Yes, ideally these wouldn't exist...)
   35: The first part of this project is: decide how it should work and sell
   36: the community on it, er, I mean, reach consensus with the community on
   37: the best approach.
   38: This (including sorting through all the requirements and miscellaneous
   39: desiderata, which are by no means listed completely above) is at least
   40: half the work.
   42: The second part of this project is to implement what you've designed,
   43: and add support to three or four packages with nontrivial test suites.
   45: (Note: this project description was partly based on loose talk on the
   46: subject appearing in PR 50645.)
   48: """
   49: ]]

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb