2016-05-17 06:58:33 +02:00
|
|
|
local file_path, _, luacovpath = ...
|
|
|
|
|
|
|
|
-- Set the global shims
|
|
|
|
-- luacheck: globals awesome root tag screen client mouse drawin
|
|
|
|
awesome = require( "awesome" )
|
|
|
|
root = require( "root" )
|
|
|
|
tag = require( "tag" )
|
|
|
|
screen = require( "screen" )
|
|
|
|
client = require( "client" )
|
|
|
|
mouse = require( "mouse" )
|
|
|
|
drawin = require( "drawin" )
|
|
|
|
|
|
|
|
-- If luacov is available, use it. Else, do nothing.
|
|
|
|
pcall(function()
|
|
|
|
require("luacov.runner")(luacovpath)
|
|
|
|
end)
|
|
|
|
|
2016-06-07 22:57:01 +02:00
|
|
|
-- Silence debug warnings
|
|
|
|
require("gears.debug").print_warning = function() end
|
|
|
|
|
2016-05-17 06:58:33 +02:00
|
|
|
-- Execute the test
|
|
|
|
loadfile(file_path)()
|