Ask HN: Why the Linux Kernel doesn't have unit tests?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • ltp

    Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)

  • There are tests, they're just out of tree, focused on integration rather than unit, and very decentralized. You'll get nastygrams on lkml if you break them.

    Here's one prominent example: https://github.com/linux-test-project/ltp

  • linux

    Linux kernel source tree

  • > Do you really need tests for the read(2) syscall when Linux is running on a billion devices, and that syscall is called some 10^12 times per second globally?

    Maybe not, but isn't it true that any new code that is being added to the kernel has been run on exactly 0 devices? And new code is being added all the time.

    Maybe that's why the most recent commit as of right now is loaded with fixes of broken things: https://github.com/torvalds/linux/commit/08ad43d554bacb9769c...

    It's one thing to say that it's impossible to test effectively locally before release (which I'm not sure if that's true or not). But you're saying it's just not worth testing because it'll break in real life and that's even better, which I"m not sure I can agree with.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • src

    Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@ mailing list.

  • embassy

    Modern embedded framework, using Rust and async.

  • A project as large and well funded as the Linux kernel could have a hardware test farm at least with reasonable coverage of popular hardware. "But Linux isn't that well funded!" Sure, but it's orders of magnitude better funded than Embassy[0], which runs tests on real hardware automatically before every merge.

    There's also the Linux testing project, which is technically third party. It's not clear to me how extensive it is but for a project as important as Linux I think it has to be graded as "needs improvement."

    [0] https://github.com/embassy-rs/embassy

    [1] https://linux-test-project.github.io/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Systemd: The Good Parts

    5 projects | news.ycombinator.com | 16 May 2021
  • Which ksh is used in openbsd?

    3 projects | /r/openbsd | 19 Mar 2021
  • PoC to demonstrate root permission hijacking by exploiting "systemd-run"

    2 projects | news.ycombinator.com | 4 May 2024
  • T2 SDE – The Open System Development Environment

    1 project | news.ycombinator.com | 3 May 2024
  • Systemd Rolling Out "run0" As sudo Alternative

    2 projects | news.ycombinator.com | 30 Apr 2024