Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow atf to be used in a C-only environment #25

Open
emaste opened this issue Aug 22, 2016 · 2 comments
Open

allow atf to be used in a C-only environment #25

emaste opened this issue Aug 22, 2016 · 2 comments

Comments

@emaste
Copy link
Member

emaste commented Aug 22, 2016

Discussed in https://reviews.freebsd.org/D7597. It looks like FreeBSD will disable tests when building without C++, as some ATF components require a C++ compiler. I don't believe this is a high priority as FreeBSD does build a C++ toolchain by default, but if it's straightforward to migrate (a minimal set of) ATF components to C we could enable/disable tests on a more fine-grained basis.

@jmmv
Copy link
Member

jmmv commented Aug 26, 2016

Ah, yikes. I remember now why this is not trivial: atf-sh also depends on atf-check and, while the former is trivial to rewrite in C, the latter is not.

My real plan would be to migrate the atf-sh tests to shtk, which has a much more robust testing library for shell tests and is purely written in shell... but that's much more effort than I can currently take on :-/

@emaste emaste closed this as completed Aug 26, 2016
@emaste emaste reopened this Aug 26, 2016
@krytarowski
Copy link

This is must have in NetBSD for me. C++ dependency is a higher cost than executing almost all of the tests in NetBSD. This matters with external toolchain, sanitized userland, ports with incomplete C++ support (not everybody needs C++, there are/were LLVM backends without C++ support).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants