5 ms·
We need more of these „How project X is tested” articles. Keep them coming! Here’s one on SQLite: https://www.sqlite.org/testing.html https://www.sqlite.org/te
by nathell 5y ago
We need more of these „How project X is tested” articles. Keep them coming!
Here’s one on SQLite: https://www.sqlite.org/testing.html https://www.sqlite.org/testing.html
- mbildner 5y agoThis feels like a passion project site idea
- AlexDenisov 5y agoI started building exactly this some years ago, but eventually stopped for some reason https://systemundertest.org https://systemundertest.org
- asicsp 5y ago"Testing Firefox more efficiently with machine learning": https://hacks.mozilla.org/2020/07/testing-firefox-more-efficiently-with-machine-learning/ https://hacks.mozilla.org/2020/07/testing-firefox-more-effic...
- JTbane 5y agoSQLite is such an amazing piece of software. Public domain, amazing testing, as well as being so lightweight and efficient. It's a breath of fresh air in a bloated software world.
- Dangsucks2 5y agoUnfortunately SQLite was developed by a religious extremist for use on war ships. (Try to reconcile those two facts...)
- RicoElectrico 5y agoReligious (source header comments) and warships (General Dynamics) sure, but an extremist?
- Dangsucks2 5y agoI mean, he killed people... Don't know why I'm being down voted for facts. See my username. HN is a disgusting echo chamber.
- Dangsucks2 5y agokys dang
- pmezard 5y agoTIL /dev/full https://en.wikipedia.org/wiki//dev/full https://en.wikipedia.org/wiki//dev/full
- rectang 5y agoThat's awesome. I've had to resort to grotesque hacks before to simulate full disks in test suites — e.g. replacing a file descriptor with a nonsense number to trigger an error at the call site where a write would have failed. Now that I know /dev/full exists, I can write a test which, although it works only on a subset of operating systems, still exercises a code path which applies to all of them.
- viraptor 5y agoYou can also create a tiny filesystem in a file, set root user reservation to 100%, mount the file with `-o loop`. That should give you a "real" full device.
- monocasa 5y agoI typically use LD_PRELOAD hacks to simulate failure conditions. That way you can get deeper into your code than simply something that always fails.
- AlexDenisov 5y agoI have a "series" of articles from a few years ago covering FreeBSD, LLVM, and GNU Make (https://lowlevelbits.org/categories/system-under-test/ https://lowlevelbits.org/categories/system-under-test/) and even created a separate website with a few more articles https://systemundertest.org https://systemundertest.org, but stopped later.
- stevenhuang 5y agoOff topic, but why do people quote things like ,,'' this?