Commit c0e5ef8e authored by Vicent Marti's avatar Vicent Marti

test.lua: Add basic test library and helpers

parent d58fe06c
This diff is collapsed.
function setup_path()
local str = require("debug").getinfo(2, "S").source:sub(2)
local cwd = str:match("(.*/)")
local bpf_path = cwd.."/../../src/lua/?.lua;"
local test_path = cwd.."/?.lua;"
package.path = bpf_path..test_path..package.path
end
setup_path()
USE_EXPECTED_ACTUAL_IN_ASSERT_EQUALS = false
EXPORT_ASSERT_TO_GLOBALS = true
require("luaunit")
BCC = require("bcc.init")
BPF = BCC.BPF
log.enabled = false
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment