TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How SQLite Is Tested

200 pointsby asymmetricalmost 9 years ago

8 comments

panicalmost 9 years ago
The section on static analysis is somewhat damning:<p><i>Static analysis has not proven to be especially helpful in finding bugs in SQLite. Static analysis has found a few bugs in SQLite, but those are the exceptions. More bugs have been introduced into SQLite while trying to get it to compile without warnings than have been found by static analysis.</i>
评论 #11936985 未加载
评论 #11936814 未加载
评论 #11938407 未加载
评论 #11937394 未加载
评论 #11937767 未加载
评论 #11937837 未加载
评论 #11937135 未加载
chris_wotalmost 9 years ago
In 2010 I stumbled upn a bug that segfaulted Firefox:<p><a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=581946" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=581946</a><p>The SQLite guy were ridiculously responsive and added all sorts of tests around the fix.<p>It&#x27;s not every day you can say you found and helped troubleshoot a bug that literally could be affected 100s of millions of users!
评论 #11937058 未加载
评论 #11936980 未加载
onderkalacialmost 9 years ago
The title says &quot;how SQLite is tester&quot;, well I don&#x27;t think the article talks about &quot;how&quot;. It only talks about the different types of tests that they apply. I&#x27;m curious about &quot;how&quot; it is done. Do you guys run a single &quot;test&quot; button and all the tests are executed? Or, all the tests are done independently? On which platforms do you test?
评论 #11938645 未加载
rodionosalmost 9 years ago
&gt; Millions and millions of test cases<p>I wasn&#x27;t sure how to interpret it, but then they mention that it&#x27;s 40100 distinct test cases, parameterized. I would have rephrased it as &quot;40K of parameterized test cases&quot;.
dangalmost 9 years ago
Many prior discussions: <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=How%20SQLite%20Is%20Tested&amp;sort=byDate&amp;dateRange=all&amp;type=story&amp;storyText=false&amp;prefix&amp;page=0" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=How%20SQLite%20Is%20Tested&amp;sor...</a>.
jesseryoungalmost 9 years ago
This seems like an extreme amount of tests, I would be very interested in hearing how they are managed. Without some sort of system around them I would imagine that many tests would lose their meaning.
64bitbrainalmost 9 years ago
Did I miss something, because I didn&#x27;t see performance testing. Given some specific test bed, which has X amount of RAM, How much Insertion Per Second(IPS) I can get?
评论 #11938651 未加载
cypharalmost 9 years ago
&gt; The TH3 test harness is a set of proprietary tests, [...] TH3 is free to SQLite Consortium members and is available by license to others.<p>I think it&#x27;s ridiculous that people make proprietary test suites. In my opinion, test suites shouldn&#x27;t even be copyrightable let alone made proprietary. A test suite is used to define what the precise interface of an API is, it&#x27;s just a piece of code rather than a standards document.<p>EDIT: To be clear, the actual test framework might be copyrightable. But the actual test cases should not be IMO. It&#x27;s also a shame that a free software project requires using proprietary software in order to practically test it.
评论 #11937438 未加载
评论 #11937104 未加载