3.4. Testing the Port

You should make sure that the port rules do exactly what you want them to do, including packaging up the port. These are the important points you need to verify.

Procedure 3.1. Recommended Test Ordering
  1. make stage

  2. make check-orphans

  3. make package

  4. make install

  5. make deinstall

  6. pkg_add package-name

    Or, in case of pkgng:

    pkg add package-name

  7. make package (as user)

Make sure that there are not any warnings issued in any of the stages.

The most thorough way to automate these steps is via installing the tinderbox or poudriere. These maintain jails in which you can test all of the above steps without changing the state of your running system. Please see ports-mgmt/tinderbox or ports-mgmt/poudriere in the Ports Collection for more information.

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.

Send questions about this document to <freebsd-doc@FreeBSD.org>.