C single header file testing framework.
#include "cutest.h"
void
test_demo() {
/* Integer */
eqint(7, 7);
/* Bool */
eqbool(true, true);
istrue(true);
isfalse(false);
/* Character */
eqchr('a', 'a');
eqstr("foo", "foo");
eqnstr("foo", "foo", 3);
/* Binary */
eqbin("foo\0bar", "foo\0bar");
}
int main() {
test_demo();
return EXIT_SUCCESS;
}
mkdir build
cd build
cmake ..
make
cd build
make install
cd build
cpack
After that, libcutest-*.deb
will be generated insode the build
directory.
cd build
sudo dpkg -i libcutest-*.deb
sudo dpkg -P libcutest
Or
sudo apt remove libcutest