make coverage target for code coverage for the unit test

so that we can easily find which module needs unit test

In order to run 'make coverage' `luacov` need to be installed
with 'sudo luarocks install luacov'.
This commit is contained in:
chrox
2014-10-06 21:31:04 +08:00
parent 330e5a2789
commit f1f8d8dc4f
6 changed files with 82 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
require "defaults"
package.path = "?.lua;common/?.lua;frontend/?.lua"
package.cpath = "?.so;common/?.so;/usr/lib/lua/?.so"
package.path = "?.lua;common/?.lua;frontend/?.lua;" .. package.path
package.cpath = "?.so;common/?.so;/usr/lib/lua/?.so;" .. package.cpath
-- global einkfb for Screen
einkfb = require("ffi/framebuffer")