File:  [NetBSD Developer Wiki] / wikisrc / projects / project / linuxtest.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Thu Feb 15 12:19:07 2018 UTC (20 months, 4 weeks ago) by sborrill
Branches: MAIN
CVS tags: HEAD
Add testing of Linux emulation

[[!template id=project

title="Test Linux emulation"

contact="""
[tech-userlevel](mailto:tech-userlevel@NetBSD.org)
"""

mentors="""
[Stephen Borrill](mailto:sborrill@NetBSD.org)
"""

category="userland"
difficulty="easy"
duration="2 months"

description="""

NetBSD has an extensive test suite that tests native kernel and userland
code. NetBSD can run Linux binaries under emulation (notably on x86,
but other platforms such as ARM have some support too). The Linux emulation
is not covered by the test suite. It should be possible to run an
appropriate subset of the tests when compiled as Linux binaries.

The project could be completed in a number of steps:

* Determine tests that make sense to run under Linux emulation (e.g. syscalls)
* Compile tests on Linux and then run on NetBSD
* Add new/altered tests for Linux-specific APIs or features
* Build cross-compilation environment to build Linux binaries on NetBSD, to make the test-suite self-hosting
* Fix Linux emulation for tests that fail
* Use tests to add Linux emulation for syscalls missing (e.g.timer_*)

It may also be instructive to look at the [Linux Test Project](http://linux-test-project.github.io/).

The project would initially be focussed on x86 (amd64 and i386).
"""
]]

[[!tag gsoc]]

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb