DUT is an uncomplicated unit testing tool created with c-preprocessor macros and GNU make for software testing purposes.
Firstly, DUT allows users to test the equality of any types, including C++ classes, which can be compared using the = operator. Moreover, special purpose tests are available for testing the equality of floating point types. This feature is aimed at allowing users to specify machine arithmetic granularity.
Secondly, DUT provides a built-in string comparison test, which saves the user time from coding their string comparison function. The software is also capable of testing for the existence of C++ exceptions and to trap and report unexpected exceptions. Additionally, it can test for the (non-)existence of POSIX signals (i.e. signal (2)), making it a more versatile choice than other testing infrastructures.
DUT is compatible with various versions of gcc and has been thoroughly tested. However, it may require further testing with other compilers. It is essential to note that the behavior of various libc function on bad input is not always specified, which may result in issues with certain systems.
To use DUT, a C or C++ compiler with a working preprocessor is necessary. It is also essential to link the code being tested with C or C++ and to only test object files that do not define main(). Additionally, GNU make is required.
The latest version of DUT includes an optional locking mechanism based on POSIX semaphores. This feature provides a simple-minded locking mechanism aimed at facilitating the tasks related to file sharing.
In conclusion, Dave's Unit Test is an excellent choice for testers seeking a simple, functional and versatile unit testing infrastructure. Its various features and compatibility make it a practical choice for developers seeking to facilitate the testing process.
Version 0.8.3: N/A