Date: Fri, 14 Mar 2014 06:11:52 -0700 From: Garrett Cooper <yaneurabeya@gmail.com> To: Julio Merino <jmmv@freebsd.org> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, "asomers@gmail.com" <asomers@gmail.com> Subject: Re: Where to put test cases for stuff in /etc? Message-ID: <769C5BD0-D803-46EB-AD18-A3031AC2036E@gmail.com> In-Reply-To: <CAFY7cWBkR8r59rcuSW5GYwMEQf%2BTFkrr7Hye2zea4Cac331SsQ@mail.gmail.com> References: <CAOtMX2iGuNz10RMyDt2-f8xw-en3YsvM56uLGJraqbcNMpZH=Q@mail.gmail.com> <423AB61A-6099-40F1-8931-B5339FFAEB65@gmail.com> <CAFY7cWBkR8r59rcuSW5GYwMEQf%2BTFkrr7Hye2zea4Cac331SsQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Mar 14, 2014, at 0:53, Julio Merino <jmmv@freebsd.org> wrote: >=20 >> On Fri, Mar 14, 2014 at 5:40 AM, Garrett Cooper <yaneurabeya@gmail.com> w= rote: >>=20 >>> On Mar 13, 2014, at 13:23, asomers@gmail.com wrote: >>>=20 >>> I occasionally make changes to /etc/rc.subr and /etc/rc.d/*. Where >>> can I write ATF test cases for those files? Should I create >>> etc/tests/rc.subr_test.sh and etc/rc.d/tests/routing_test.sh ? >=20 > Tests for these would be awesome. >=20 >> Putting it under tests/etc would be a better idea for now. The build s= ystem under etc/ is a bit of a mess... >=20 > What's the problem with putting tests in etc/tests/ and what would it > take to fix that? You'd need to create ad hoc make recipes that handled WITH_TEST properly, or= enhance the Makefiles to use bsd.*.mk. Cheers, -Garrett=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?769C5BD0-D803-46EB-AD18-A3031AC2036E>