ATF Test Cases

Julio Merino jmmv at freebsd.org
Thu Mar 27 04:33:19 UTC 2014


On Thu, Mar 27, 2014 at 1:00 PM, Alan Somers <asomers at freebsd.org> wrote:
> I never thought about using eval to dynamically define testcases.  Can
> you please give an example?

Not the prettiest code in the world, but the ipf tests in NetBSD are
an example.  See the h_common.sh[1] file for the helper functions and
t_filter_exec.sh[2] for a specific case of their use and the
definition of various tests.

1: http://cvsweb.netbsd.org/bsdweb.cgi/src/tests/ipf/h_common.sh?rev=1.8&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
2: http://cvsweb.netbsd.org/bsdweb.cgi/src/tests/ipf/t_filter_exec.sh?rev=1.8&content-type=text/x-cvsweb-markup&only_with_tag=MAIN


More information about the freebsd-testing mailing list