From owner-freebsd-testing@FreeBSD.ORG Wed Apr 2 23:31:09 2014 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6CCAFDF; Wed, 2 Apr 2014 23:31:09 +0000 (UTC) Received: from mail-vc0-x229.google.com (mail-vc0-x229.google.com [IPv6:2607:f8b0:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 52DFEACE; Wed, 2 Apr 2014 23:31:09 +0000 (UTC) Received: by mail-vc0-f169.google.com with SMTP id ik5so1415760vcb.14 for ; Wed, 02 Apr 2014 16:31:08 -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 :cc:content-type; bh=YIa4u4Gk57/Dpmq7NJ+QaVwSgNCQqN1gI0Asqc9nbtE=; b=TmWuqFW7J1Ju086CO9vt5mZL0ehG6AsQRSXJdMtnEUhXn1oEkGW9kKKD1aPB2uVv16 RCVKTQzUYqIR2Z6QpisJ8PF0tthKq138xE4Om7CN0emQRXuDVQZkHVYYvqbTf7ccJ91g uzSYpxqtufg9DEjDRUzf8Bu72kfJ2kEwJlo59dM9BhGyqjTaqA/sc6gHW4pIFcJnlVJ8 g2rGFb59TgE8LOj2/NLayZ081a2fg0o+5OoVarR9+0TUN/rEiz8rXkSOQUE2r47ZXxVO 2lV9tQMLPRDCq7UEduRwevE55L2VoWmLtmBJ1EteQOFwwC9hzoO+3onhfozo/Pfuimo7 4Pbw== MIME-Version: 1.0 X-Received: by 10.52.12.36 with SMTP id v4mr4151906vdb.20.1396481468439; Wed, 02 Apr 2014 16:31:08 -0700 (PDT) Received: by 10.221.67.136 with HTTP; Wed, 2 Apr 2014 16:31:08 -0700 (PDT) In-Reply-To: References: <16437CC5729B5345AF77F816513376E8129868F1@MX103CL02.corp.emc.com> <16437CC5729B5345AF77F816513376E820BAA20A@MX103CL02.corp.emc.com> Date: Wed, 2 Apr 2014 16:31:08 -0700 Message-ID: Subject: Re: Makefiles for skip-level directories? From: Garrett Cooper To: Julio Merino Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-testing@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2014 23:31:09 -0000 On Wed, Apr 2, 2014 at 2:38 PM, Julio Merino wrote: > On Mon, Mar 31, 2014 at 7:07 PM, Peel, Casey wrote: >>> In a thread in January, we agreed not to put any tests in sys/. >>> Instead, we'll put them in tests/sys. Take a look at >>> tests/sys/netinet; you can probably copy its structure for your tests. >> >> Ah, that helped, thanks. I was able to get them working in test/sys/. >> >>> The magic to install intermediate Kyuafiles lives in the 'tests' >>> subdirectory corresponding to where they are installed! See >>> src/bin/tests/Makefile, for example. >> >> Thanks, but that's about as clear as mud. Is the "magic" the KYUAFILE=yes line? When is this required and when isn't it? Where is the documentation on its usage? > > The *.test.mk files in share/mk/ are reasonably documented. The > share/mk/README file also includes a few words on bsd.test.mk. There > are also heavily commented examples in > /usr/src/share/examples/tests/tests/ . And there is also > https://wiki.freebsd.org/TestSuite/DeveloperHowTo . > > Please let me know where the documentation above is lacking and/or how > to make it more discoverable. As a very brief sidenote, the Kyuafile that handles autodiscovery in FreeBSD head lives under src/test/Kyuafile ; it automatically gets installed when make install is run from src/tests . Cheers! -Garrett