(6)使用biselect追查問題,當發現一個bug卻不知道是由哪個補丁引入時,使用二分查找,代碼管理系統git以及補丁管理工具quilt都支持二分查找。
9. 覆蓋率。關于Linux kernel的測試覆蓋率,沒有看到最新的統計,不過以前數據多是在20%左右的分支覆蓋率。
雖然說自動化測試越來越重要,但是將內核部分測試自動化卻是非常困難的,自動化只涵蓋了一少部分功能,性能的自動化看起來做得更多些。質量更多還是由開發人員以及社區測試來保證。另外一方面看,Linux kernel本身的架構應該也有較高的容錯性和可擴展性,以支持如此大量又頻繁的修改。
說明
寫本文時,我還并沒有實際參與過Linux kernel的開發或測試,只是對其有興趣,于是在網上查閱了大量文檔,有些信息可能已經過時或者與實際情況不符,僅供參考。
引用說明
網上鏈接
Crackerjack Project http://ossipedia.ipa.go.jp/crackerjack/index.html
Linux命名爭議 http://en.wikipedia.org/wiki/GNU/Linux_naming_controversy
Linux Test Project,測試Linux kernel以及相關功能 http://ltp.sourceforge.net/
Linux測試工具 http://ltp.sourceforge.net/tooltable.php
Linux 維基百科 http://en.wikipedia.org/wiki/Linux
Linux Kernel維基百科 http://en.wikipedia.org/wiki/Linux_kernel
開發流程 http://linuxwireless.org/en/developers/process
Autotest項目http://autotest.github.com/
Greg Kroah Hartman on the Linux Kernel視頻http://www.youtube.com/watch?v=L2SED6sewRw
http://stackoverflow.com/questions/3177338/how-is-linux-kernel-tested
kernel官網 http://www.kernel.org/
Linux kernel郵件列表FQA http://ftp.osuosl.org/pub/linux/docs/lkml/
Pdf電子書
《Best Practices in Linux Kernel Testing》
《Linux Kernel Tester’s Guide》version 0.3,中文版《Linux 內核測試指南》
《How to Participate in the Linux Community》2008.8
《Linux Kernel Development:How Fast it is Going, Who is Doing It, What They are Doing, and Who is Sponsoring It》2012.3
原文轉自:http://qa.baidu.com/blog/?p=1026