awesome/tests/examples/shims/_common_template.lua

27 lines
920 B
Lua

return function(_, _)
-- Set the global shims
-- luacheck: globals awesome root tag screen client mouse drawin button
awesome = require( "awesome" )
root = require( "root" )
tag = require( "tag" )
screen = require( "screen" )
client = require( "client" )
mouse = require( "mouse" )
drawin = require( "drawin" )
button = require( "button" )
-- Force luacheck to be silent about setting those as unused globals
assert(awesome and root and tag and screen and client and mouse)
-- If luacov is available, use it. Else, do nothing.
if (os.getenv('DO_COVERAGE') or '0') ~= '0' then
require('luacov.runner')(os.getenv('SOURCE_DIRECTORY')..'/.luacov')
end
-- Silence debug warnings
require("gears.debug").print_warning = function() end
end
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80