C TAP Harness

Description

This package started as the runtests program I wrote for INN in 2000 to serve as the basis for a new test suite using a test protocol similar to that used for Perl modules. When I started maintaining additional C packages, I adopted runtests for the test suite driver of those as well, resulting in further improvements but also separate copies of the same program in different distributions. The C TAP Harness distribution merges all the various versions into a single code base that all my packages can pull from.

C TAP Harness implements essentially all of the TAP specification. It also has a few special features for supporting builds outside the source directory. It's mostly useful for packages using Autoconf and Automake, and because it doesn't assume or require Perl.

The runtests program can be built with knowledge of the source and build directory and pass that knowledge on to test scripts, and will search for test scripts in both the source and build directory. This makes it easier for packages using Autoconf and Automake and supporting out-of-tree builds to build some test programs, ship others, and run them all regardless of what tree they're in. It also makes it easier for test cases to find their supporting files when they run.

Also included in this package are C and shell libraries that provide utility functions for writing test scripts that use TAP to report results.

Requirements

C TAP Harness requires a C compiler to build. Any ISO C89 or later C compiler on a system supporting the Single UNIX Specification, version 3 (SUSv3) should be sufficient. This should not be a problem on any modern system. The test suite and shell library require a Bourne-compatible shell. Outside of the test suite, C TAP Harness has no other prerequisites or requirements.

To run the test suite, you will need Perl plus the Perl module Test::More, which comes with Perl 5.8 or later.

To test the documentation, you will additionally need Test::Pod and Test::Spelling, along with a spelling checker supported by Test::Spelling. Both are available from CPAN. The tests will be skipped without interfering with the rest of the tests if these modules are not installed. Spelling tests are disabled by default since spelling dictionaries differ too much between systems. To enable those tests, set RRA_MAINTAINER_TESTS to a true value.

To bootstrap from a Git checkout, or if you change the Automake files and need to regenerate Makefile.in, you will need Automake 1.11 or later. For bootstrap or if you change configure.ac or any of the m4 files it includes and need to regenerate configure or config.h.in, you will need Autoconf 2.64 or later. Perl is also required to generate the manual pages from a fresh Git checkout.

Download

The distribution:

C TAP Harness 3.1 2014-07-02 tar.gz (PGP signature) tar.xz (PGP signature)

An archive of older releases is also available.

C TAP Harness is maintained using the Git version control system. To check out the current development tree, clone:

    git://git.eyrie.org/devel/c-tap-harness.git

You can also browse the current development source. If you prefer to use github, C TAP Harness is also available there.

Documentation

User documentation:

Developer documentation:

API documentation:

License

The C TAP Harness package as a whole is released under the following license:

Copyright 2000, 2001, 2004, 2006, 2007, 2008, 2009, 2010, 2011, 2012 2013, 2014 Russ Allbery <eagle@eyrie.org>

Copyright 2006, 2007, 2008, 2009, 2011, 2012 The Board of Trustees of the Leland Stanford Junior University

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Some individual source files are covered by other, compatible licenses. For complete copyright and license information, see the file LICENSE in the C TAP Harness source distribution.

Last modified and spun 2014-07-02