Re: Run binary from test suite

2017-07-12 Thread Panagiotes Mousikides
Den 2017-07-11 kl. 20:05, skrev Ngie Cooper: On Tue, Jul 11, 2017 at 10:38 AM, Panagiotes Mousikides wrote: (Resending due to moderation.) 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,

Re: Run binary from test suite

2017-07-12 Thread Panagiotes Mousikides
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 s

Re: Run binary from test suite

2017-07-11 Thread Ngie Cooper
On Tue, Jul 11, 2017 at 10:38 AM, Panagiotes Mousikides wrote: > (Resending due to moderation.) > > 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

Run binary from test suite

2017-07-11 Thread Panagiotes Mousikides
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 pat

Run binary from test suite

2017-07-11 Thread Panagiotes Mousikides
(Resending due to moderation.) 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

Re: Run binary from test suite

2017-07-11 Thread 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 On Tue,