Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2014 13:32:51 +0900
From:      Julio Merino <jmmv@freebsd.org>
To:        Alan Somers <asomers@freebsd.org>
Cc:        "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, "Kilner, Peter" <Peter.Kilner@emc.com>
Subject:   Re: ATF Test Cases
Message-ID:  <CAFY7cWB0Drqu2MV=QsDhwyrJLLNuF=edbSReedb%2Bwu=1-Kfqyg@mail.gmail.com>
In-Reply-To: <CAOtMX2i4dQqkkD5-jNNuzTFdqOhLcVdD0nVLSekNjM9vfnQ6_w@mail.gmail.com>
References:  <DB777D43-945C-4C0D-A3A8-66DD5C9B214E@isilon.com> <CAFY7cWASGfetQLLr_0Zce%2B-Z-1EdtQdW-gPQEezz9YZ7ZSA7sg@mail.gmail.com> <CAOtMX2i4dQqkkD5-jNNuzTFdqOhLcVdD0nVLSekNjM9vfnQ6_w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 27, 2014 at 1:00 PM, Alan Somers <asomers@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFY7cWB0Drqu2MV=QsDhwyrJLLNuF=edbSReedb%2Bwu=1-Kfqyg>