Sput - Simple, Portable C Unit Testing Framework

Sput is an Open Source unit testing framework for software developed using the C/C++ language. In contrast to other available C unit testing frameworks, Sput is designed to be both simple to use and portable.

As a result, Sput comes as a single header file, written in plain ANSI C.


  • Easy to use (single header file, intuitive API)
  • Portable (plain ANSI C)
  • Intuitive reporting
  • Fit the needs of test-driven software development

Have a look at the tutorial to find out more about how easy Sput can be used for portable testing!

Requirements and Dependencies

Sput does not depend on any third party software (libraries) and requires nothing but an ANSI C compliant compiler.

Platform and Operating System Support

Sput has been successfully tested and used for unit testing purposes on the following platforms and operating systems:

  • Linux (x86, x86_64, powerpc, sparc)
  • FreeBSD (x86, x86_64)
  • Windows XP (x86)
  • Windows 7 (x86_64)
  • Solaris (sparc)
  • Mac OS X (x86_64, powerpc)

Besides the above platforms, Sput should work as expected on any other platform that is supported by your ANSI C compliant compiler.