[[!template id=project title="Test Linux emulation (350h)" contact=""" [tech-userlevel](mailto:tech-userlevel@NetBSD.org) """ mentors=""" [Stephen Borrill](mailto:sborrill@NetBSD.org) """ category="userland" difficulty="easy" duration="350h" 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]] [[!tag gsoc350h]]