Page MenuHomeFreeBSD

libexec: atf is needed by kyua, which is wired by MK_TESTS_SUPPORT
ClosedPublic

Authored by franco_opnsense.org on Nov 18 2024, 2:20 PM.
Tags
None
Referenced Files
F107600924: D47660.diff
Thu, Jan 16, 11:51 AM
Unknown Object (File)
Sun, Jan 12, 6:58 AM
Unknown Object (File)
Thu, Dec 26, 11:56 PM
Unknown Object (File)
Thu, Dec 26, 8:23 AM
Unknown Object (File)
Thu, Dec 26, 4:21 AM
Unknown Object (File)
Thu, Dec 26, 12:50 AM
Unknown Object (File)
Dec 10 2024, 11:30 AM
Unknown Object (File)
Dec 10 2024, 1:58 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 60664
Build 57548: arc lint + arc unit

Event Timeline

I don't see how kyua depends on libexec/atf, and a WITHOUT_TESTS= buildworld completes for me without errors. What exactly are you building, and how does it fail?

I think the patch is probably right in any case, but the justification doesn't make sense to me.

There is another bug in that WITHOUT_TESTS= implies WITHOUT_TESTS_SUPPORT=, but the converse is not true. That's backwards.

I have WITHOUT_TESTS=yes and WITH_TESTS_SUPPORT=yes which adds kyua and libatf, but not atf tools in libexec. On a build without WITHOUT_TESTS=yes the atf tools are placed in the base system as a side effect.

(kyua depends on e.g. libexec/atf-sh for script execution via shebang in /usr/src/tests/sys/netpfil/pf/*.sh)

Meh, sorry for the misinformation. All of this is very difficult to trace.

Simply put: If I delete /usr/libexec/atf* then kyua says:

  1. kyua debug -k /usr/tests/sys/netpfil/pf/Kyuafile killstate:match
  2. kyua E: Unknown test case 'killstate:match'.

If the atf tools are there it works as expected so I think this was meant to be clustered together.

Meh, sorry for the misinformation. All of this is very difficult to trace.

Simply put: If I delete /usr/libexec/atf* then kyua says:

  1. kyua debug -k /usr/tests/sys/netpfil/pf/Kyuafile killstate:match
  2. kyua E: Unknown test case 'killstate:match'.

If the atf tools are there it works as expected so I think this was meant to be clustered together.

I see now. I thought you meant that kyua has a build-time dependency on atf.

I'd commit this with the following log:

atf: Guard libexec/atf with WITH_TESTS_SUPPORT

Other atf components are guarded by WITH_TESTS_SUPPORT already.

Is that ok with you? Or, feel free to mail me a patch with the commit log that you want.

This revision is now accepted and ready to land.Nov 18 2024, 5:32 PM
This revision was automatically updated to reflect the committed changes.