I'm looking for a testsuite for the C Standard Library (mainly for the algorithms not contacting the "outer world", so strcpy()
, memcmp()
, itoa()
& likes).
I tried downloading the GCC sources, but they're very large and I have trouble finding anything I could reuse in there...
(To be clear, the question is meant about the ANSI C Standard Library, not POSIX or else. Also, I'd like for the tests to be rather portable.)
The public domain C library has quite simple test cases, which are embedded in each source code file. For example: memcpy, strtol
Newlib has test cases organized as a test suite. They are more complex, but not nearly all functions are covered: memcpy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With