Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
c0e5ef8e
Commit
c0e5ef8e
authored
Mar 30, 2016
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test.lua: Add basic test library and helpers
parent
d58fe06c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2167 additions
and
0 deletions
+2167
-0
tests/lua/luaunit.lua
tests/lua/luaunit.lua
+2150
-0
tests/lua/test_helper.lua
tests/lua/test_helper.lua
+17
-0
No files found.
tests/lua/luaunit.lua
0 → 100644
View file @
c0e5ef8e
This diff is collapsed.
Click to expand it.
tests/lua/test_helper.lua
0 → 100644
View file @
c0e5ef8e
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment