Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2017 12:51:03 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Panagiotes Mousikides <paggas1@yandex.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>,  FreeBSD CURRENT <freebsd-current@freebsd.org>, Kristof Provost <kp@freebsd.org>
Subject:   Re: Run binary from test suite
Message-ID:  <CAOtMX2jj8%2BS49Sr2j4skGG4kx_yOFbq3gWrOUbN8W2n0v=E=JA@mail.gmail.com>
In-Reply-To: <ec51f187-ba2f-a9fd-c6d1-2466bc0b0ab6@yandex.com>
References:  <ec51f187-ba2f-a9fd-c6d1-2466bc0b0ab6@yandex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<paggas1@yandex.com> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2jj8%2BS49Sr2j4skGG4kx_yOFbq3gWrOUbN8W2n0v=E=JA>