tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Testing Emulation Syscalls



On Tue, Aug 01, 2023 at 12:43:50PM -0400, Theodore Preduta wrote:
> My understanding of the "without Linux dev tools and libs around" part
> is that each test case would be a separate (static Linux) binary that is
> just a main() that only directly calls syscalls.

Yes.

> And then I guess integration with the rest of ATF could be done through
> something like atf-sh-api(3), with status reporting done via exit codes
> (maybe stdout/strerr too? but that would require more tooling).

Right. We have lots of atf wrappers around other "binaries" that do the
real tests (usually called h_* for test helper binary).

Martin


Home | Main Index | Thread Index | Old Index