From owner-freebsd-hackers@freebsd.org Tue Jul 11 18:51:04 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A817FDA9EFA; Tue, 11 Jul 2017 18:51:04 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-yb0-x243.google.com (mail-yb0-x243.google.com [IPv6:2607:f8b0:4002:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6615B820E9; Tue, 11 Jul 2017 18:51:04 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-yb0-x243.google.com with SMTP id n205so47400yba.1; Tue, 11 Jul 2017 11:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=eJuAQlIcl8eru/MHSqFooVhEGf5g7sGWiCPr09mytBA=; b=qIUdfRglr5w8a7xBOxV12ppVSiVErJRfPI171WrUpkMD/YPKQXAG/FNbpzM8yNYmXx y4Bzz8CTgV4Fh7R8HEGhaVxxfj4EYUvrtGDvVb3nAnaO5O8c3JBGY9mEq2DCqtnbJJzj doSazkIZITjkBbjvxzuGXzo37MPPr03AtfzX9ecXQIauY1XF6KNCxDrQOTyiFu7B89/H hk3Dq8g7rMRnVaG7oghgVBd7cZg1FaaD9N1z9OOi5gHVff22FQuQY3l7T0hF/ljrR2hs 4kyuYy7CkWKxJbB2eE7vTtruM68pSdyikn363fVhx/XRKldpNiF60i5HJGtVo4AE5YtN MjfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=eJuAQlIcl8eru/MHSqFooVhEGf5g7sGWiCPr09mytBA=; b=Qe6bWAFfL+GBHlmFXD2a9Jk9lMReEpk0ibx7u60FNWOL4jrMwzKealxO98hlKaE/u5 EPG4JDYnJTY0huefbPuE8m/fja5yls8C8/LdjO6BbXT02PF/XfAXOdTaQ4krAHhGdUL7 aPmhIpMo7VMVWzO/IK+solEjJtZ5cxJKRBNtWRAxpLNyY9wO4QBOhgi914TPVgKUz0j9 /KKznoNiP/zCkxweLdaCWqDONPsDXhWAoolXgdJJ1jF2+psbMPkgqAr0UED8ph/BgrHA Yxn3OhRjKtSsmE52dVI47pghQ1nOtyzfVhE290xamRHapU+WKk8aYthWl+6DvZU7UMzG dK8w== X-Gm-Message-State: AIVw111E4N6f8ET90sdMTx4w8X5fFLGaJKriarbw4fKFmNsjI8gu7g++ clcIHZwEGCq1o/uFmyPHlKXjJzex0g== X-Received: by 10.37.219.208 with SMTP id g199mr37985ybf.195.1499799063562; Tue, 11 Jul 2017 11:51:03 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.13.243.135 with HTTP; Tue, 11 Jul 2017 11:51:03 -0700 (PDT) In-Reply-To: References: From: Alan Somers Date: Tue, 11 Jul 2017 12:51:03 -0600 X-Google-Sender-Auth: UleoGt4k4oZ4Y-Dq742qiiiol3o Message-ID: Subject: Re: Run binary from test suite To: Panagiotes Mousikides Cc: "freebsd-hackers@freebsd.org" , FreeBSD CURRENT , Kristof Provost Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2017 18:51:04 -0000 Are you using pfctl at build time or does your ATF test script need it? I'm assuming the latter. In that case, it's fine to call it directly. Your PATH will be correctly configured. Don't use /usr/obj, because that may no longer exist by the time somebody is running the ATF test. -Alan On Tue, Jul 11, 2017 at 11:13 AM, Panagiotes Mousikides wrote: > Hello! > > I'm a Google Summer of Code student, writing some tests for the FreeBSD test > suite, and putting them under src/tests. I need to run some binaries, > specifically pfctl. > > How should I call pfctl from my test scripts? Should I call it directly and > let the shell find the binary in the path? Or should I find where the build > version got created (somewhere under /usr/obj) and call that? How do I find > where the binary ended up getting created in that case? > > Best regards, > Panagiotes > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"