Test files

Jeffrey Walton noloader at gmail.com
Mon Nov 22 20:47:07 CET 2010


The GNU style guide (http://www.gnu.org/prep/standards/standards.html)
does not appear to offer guidance on test suites or test files.
http://www.gnu.org/software/gnutls/coverage/ seems to be one page with
project test results but no links to additional information.

Is there a one-to-one between source files and test files? For example
/src/foo.c and /tests/foo.c?

Can test files be added at the function level? For example, suppose
foo.c includes two functions, bar and baz. Is it appropriate to have
test files /tests/foo-bar.c and /tests/foo-baz.c?

Is there any additional reading available?

Jeff




More information about the Gnutls-devel mailing list