做者:snsn1984 html
就像不少優秀的軟件都有本身的測試框架同樣,LLVM也有本身的測試框架。LLVM的測試主要分爲兩 bash
部分:regression tests 和 whole programs。其中, regression tests 主要位於LLVM源碼/test目錄下,主要是就能夠單獨運行這個測試。或者在llvm-lit後面跟上一個測試目錄,llvm-lit能夠運行這個目錄下的全部測試用例。 框架
若是在運行llvm-lit的三個時候碰到了bash: ./llvm-lit: Permission denied 這個錯誤,那麼能夠使用$>chmod +x llvm-lit命令。 ide
LLVM官方介紹測試的文檔: http://llvm.org/docs/TestingGuide.htmlLLVM官方介紹lit的文檔:http://llvm.org/docs/CommandGuide/lit.html 工具
---------------------------------------------------轉載請註明出處---------------------------------------------------------------------------- 測試