From owner-freebsd-testing@FreeBSD.ORG Wed Apr 2 21:38:34 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 ACC20A8D for ; Wed, 2 Apr 2014 21:38:34 +0000 (UTC) Received: from mail-qc0-f180.google.com (mail-qc0-f180.google.com [209.85.216.180]) (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 6A4B7F1C for ; Wed, 2 Apr 2014 21:38:34 +0000 (UTC) Received: by mail-qc0-f180.google.com with SMTP id w7so918178qcr.39 for ; Wed, 02 Apr 2014 14:38:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=AFgMmqXA3qVAiaeeCK/CqdrMfphZDJ2pHB3IXjbzpnA=; b=GaGut5OqidC+8eJ4ABDR1O5hZbp6psxX0H4FsJyIJfiyAbMBAU0ZAluyXq4fTg39HG T9/xgWubem7Dh8g2EGHTBVO5K+rxvsEICXJdtJEELzzZTHVyokyip8Hqy3L1VgFqxYGi eFlmrkmZ1xch+3aW1ffcFnKd/FrcOIfFogYUpRwfJGyaeF75Q4yPmlsbJUGFby+O7CQ9 wSFsNaCBSuUzXQAz/rvvfMThZzBRXt2NcDq5DAugpVByL/eIEAsewvuH0qVLEoZAUEip JlusqyU+TXnCenVGwNr7MaSwpreGCptfyXtYZ8Jx52LJvxl55/02S06BGkEQyxo01q3u CUyw== X-Gm-Message-State: ALoCoQldoQPJDjq4NFPHyDBa7PjNMdxir8iFqXfX1JiGMv/Cij/F6Ufshh39XbECdMbsm9l9q17o X-Received: by 10.140.29.130 with SMTP id b2mr3335069qgb.48.1396474706951; Wed, 02 Apr 2014 14:38:26 -0700 (PDT) MIME-Version: 1.0 Sender: jmmv@meroh.net Received: by 10.96.83.102 with HTTP; Wed, 2 Apr 2014 14:38:06 -0700 (PDT) X-Originating-IP: [2620:0:1003:1007:29ba:37ff:bd36:97ee] In-Reply-To: <16437CC5729B5345AF77F816513376E820BAA20A@MX103CL02.corp.emc.com> References: <16437CC5729B5345AF77F816513376E8129868F1@MX103CL02.corp.emc.com> <16437CC5729B5345AF77F816513376E820BAA20A@MX103CL02.corp.emc.com> From: Julio Merino Date: Wed, 2 Apr 2014 17:38:06 -0400 X-Google-Sender-Auth: R1ifANsC4cIqaDaS2RdTo_CxG3A Message-ID: Subject: Re: Makefiles for skip-level directories? To: "Peel, Casey" 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 21:38:34 -0000 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. Cheers