[CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program

Garrett Cooper yanegomi at gmail.com
Fri Oct 26 19:27:36 UTC 2012


On Fri, Oct 26, 2012 at 9:54 AM, David O'Brien <obrien at freebsd.org> wrote:
> On Tue, Oct 02, 2012 at 07:19:55AM -0700, Garrett Cooper wrote:
>> Hmmm... that's one of the 3 approaches I provided, but it turned out
> ...
>> 1. Test programs live with the sources (this was the requested approach), e.g.
>> 2. Test programs live in subdirs:
>> 3. Test programs completely decoupled from the source tree:
>
> Could someone please commit at least one working .c test and one .sh test?
>
> There is nothing to follow for others trying to write their own tests
> in the FreeBSD-way.
>
> I could not find a single consumer of ATF in HEAD.  This makes it seem
> this is still a WIP that should be living in a branch and not in HEAD.
> But we're paying the price for checkout & build times, etc...
> See the recent 9.1-R thread and Peter Wemm (and others) comments in this
> regard.
> (this is why I hadn't committed the WIP I had - it wasn't ready for HEAD)

There are some basic examples, but they're in my p4 branch and
unfortunately they depend on atf.test.mk/bsd.test.mk/bsd.progs.mk
existing before they can be built (please see the Examples section in
http://wiki.freebsd.org/TestingFreeBSD ). I also have the tests
integrated in my perforce branch and running, but it doesn't do a bit
of good unless the build pieces are in.

I've been trying to get these things into HEAD in proper order so they
can be used effectively.

Thanks,
-Garrett


More information about the freebsd-hackers mailing list