From owner-freebsd-arch@FreeBSD.ORG Fri Oct 26 19:27:36 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 51FE5930; Fri, 26 Oct 2012 19:27:36 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id D270F8FC08; Fri, 26 Oct 2012 19:27:35 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so3876720oag.13 for ; Fri, 26 Oct 2012 12:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4YoGvdaS2yUwfmIIOW1fh7i7FkYobh563vN1eBreYC0=; b=P7V5wjivElKtQakrOQkIGPsfNEpiZHa/zuhoc9n6S34f46kRzR3bF0x15fIUQ17Q+Y anVnngfDDRSu0pa/Dk5PCFFMiDksPrVmOIj7U0IRFhr3cfD87jTIBGfFQVKKZ7HHxMK0 9Jr3ORqXmGGghtk1gnYod3XLy5+2csRqxMWwFFjLrPSWsfUvOAmWyUgHTyzzo/pcC1xb 41OgWKCB2uXXBTs+AJwuVX9Ih4DHeTjUktbpsZofcmQiDp0GJM8kjBsZB+Jl6E2qbLLv /c6nNfW/IFkUJgNjRGbOwjEshn5YTUtxCWyPy9TNOJv7O5HoJPS5VZtaNWfVeXTibuAI HAKw== MIME-Version: 1.0 Received: by 10.60.169.170 with SMTP id af10mr20543013oec.17.1351279655268; Fri, 26 Oct 2012 12:27:35 -0700 (PDT) Received: by 10.76.143.33 with HTTP; Fri, 26 Oct 2012 12:27:35 -0700 (PDT) In-Reply-To: <20121026165414.GA43599@dragon.NUXI.org> References: <20121001223100.E7D0D58093@chaos.jnpr.net> <20121002000030.54CEE58093@chaos.jnpr.net> <20121026165414.GA43599@dragon.NUXI.org> Date: Fri, 26 Oct 2012 12:27:35 -0700 Message-ID: Subject: Re: [CFT/RFC]: refactor bsd.prog.mk to understand multiple programs instead of a singular program From: Garrett Cooper To: obrien@freebsd.org, Garrett Cooper , "Simon J. Gerraty" , freebsd-hackers@freebsd.org, freebsd-arch@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 19:27:36 -0000 On Fri, Oct 26, 2012 at 9:54 AM, David O'Brien 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