2018-07-21 23:05:03 +00:00
|
|
|
#!/usr/bin/env resty
|
|
|
|
|
2018-07-22 01:32:57 +00:00
|
|
|
local ffi = require("ffi")
|
|
|
|
|
|
|
|
-- without this we get errors such as "attempt to redefine XXX"
|
|
|
|
local old_cdef = ffi.cdef
|
|
|
|
local exists = {}
|
|
|
|
ffi.cdef = function(def)
|
|
|
|
if exists[def] then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
exists[def] = true
|
|
|
|
return old_cdef(def)
|
|
|
|
end
|
|
|
|
|
2018-07-21 23:05:03 +00:00
|
|
|
require "busted.runner"({ standalone = false })
|