Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comprehensive open-source test suite for the C Standard Library [closed]

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.)

like image 623
akavel Avatar asked Aug 27 '12 23:08

akavel


1 Answers

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

like image 200
jpa Avatar answered Oct 23 '22 11:10

jpa