Navigate This Site...

CUT 3.0 -- C Unit Tester 3.0

What is CUT?

CUT is designed to aid the C (or C-derived, statically compiled language) programmer in implementing unit or programmer tests, primarily to facilitate test-driven (and related) development practices.

Who Contributed to CUT?

CUT was primarily written by myself and by Billy Tanksley, starting life as distinct, and even competing, CUT 1.0 and test-assert packages, respectively. When it was finally decided to combine both packages into a single tool, CUT 2.0 was released, and found to be vastly more useful than either expected.

In 2004, Sergei Gnezdov wrote a tutorial based on CUT 2.3, which is still applicable to the CUT 2.4 version. You will need Adobe Acrobat reader to read the file, as it was written in LaTeX. The tutorial and its source files are also included in the source distribution. Sergei also contributed CUT to the BSD ports collection!

What is Different About CUT 3 Versus 2.4?

Getting CUT

CUT 3.0 is still being developed, and therefore has no binaries available for download. However, if you use the Darcs source management tool, you may acquire the latest development snapshot, which includes these webpages as well. Contributors to the code are encouraged to update corresponding web pages as well, to ensure the online documentation matches the latest CUT developments.

darcs get http://www.falvotech.com/content/cut/3

Installing CUT

Once acquired, simply execute the following (you'll need GNU Make version 3.80 or later for the non-recursive make system to work):

make all
PREFIX=/usr/local make install

If you, like me, are a GoboLinux user, you can execute the following:

make all
PREFIX=/Programs/Cut/3.0pre1 make install
SymlinkProgram Cut 3.0pre1

That should build and install the cutgen utility. Other components will be documented and automated as time permits.