From owner-freebsd-hackers@freebsd.org Wed Jul 12 17:02:18 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 575C3D9D8D1; Wed, 12 Jul 2017 17:02:18 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from forward19p.cmail.yandex.net (forward19p.cmail.yandex.net [IPv6:2a02:6b8:0:1465::aa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0FDAE6EA50; Wed, 12 Jul 2017 17:02:18 +0000 (UTC) (envelope-from paggas1@yandex.com) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [37.140.190.26]) by forward19p.cmail.yandex.net (Yandex) with ESMTP id 553C7216C2; Wed, 12 Jul 2017 20:02:15 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id B7BC51300996; Wed, 12 Jul 2017 20:02:11 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id BY5aiKunQl-2A90tKHd; Wed, 12 Jul 2017 20:02:10 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1499878930; bh=J4Detb1G1GpRZwjo/KNiwsfN944xqr1BtHh7nC/Wy8Y=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=u4RIjkq1BOXfqZ4K3qSuDQROJiLdQYcZbvh3UT+p1L5FZFm65sGSOc9hh59aoTDhL +i5Cx89coiLgpHpuFwhwEUx4tz09oFeMFfhjS23Ifz8HE2iEh5sP6z9+F1JaaYAhqT cE1vGFqJkzTD8o+8ahHcPbJ611ncgTqnllw1eOWw= Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.com X-Yandex-Suid-Status: 1 1022867361,1 0,1 0,1 0,1 0 Subject: Re: Run binary from test suite To: Alan Somers Cc: "freebsd-hackers@freebsd.org" , FreeBSD CURRENT , Kristof Provost References: From: Panagiotes Mousikides Message-ID: <8d53af55-1e24-fc2b-fabe-f5e32b8b3255@yandex.com> Date: Wed, 12 Jul 2017 17:02:09 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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: Wed, 12 Jul 2017 17:02:18 -0000 Den 2017-07-11 kl. 18:51, skrev Alan Somers: > 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 I see, thanks a lot for the input! I will change my tests to call pfctl from PATH. Best regards, Panagiotes > > 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"