diff options
author | bloodstalker <thabogre@gmail.com> | 2018-07-19 00:09:20 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-07-19 00:09:20 +0000 |
commit | 82dff3bff1b0d97585a2cbd574879057405cf363 (patch) | |
tree | 6b058fa70eb5176e21e6e51c80ff7d281801f565 /bruiser/lua-scripts | |
parent | fixing travis (diff) | |
download | mutator-82dff3bff1b0d97585a2cbd574879057405cf363.tar.gz mutator-82dff3bff1b0d97585a2cbd574879057405cf363.zip |
a fix for the luatablegen json file, added a new option to load.py, minor cosmetic changes
Diffstat (limited to 'bruiser/lua-scripts')
-rw-r--r-- | bruiser/lua-scripts/demo1.lua | 2 | ||||
-rw-r--r-- | bruiser/lua-scripts/demo3.lua | 6 | ||||
-rw-r--r-- | bruiser/lua-scripts/regtest.lua | 17 |
3 files changed, 20 insertions, 5 deletions
diff --git a/bruiser/lua-scripts/demo1.lua b/bruiser/lua-scripts/demo1.lua index c349c36..c768687 100644 --- a/bruiser/lua-scripts/demo1.lua +++ b/bruiser/lua-scripts/demo1.lua @@ -65,7 +65,7 @@ end function Demo1.findMain() local c = objload("load", "elf_get_func_names", elf_file, "symbol_list") for k,v in ipairs(c) do - if v == "main" then + if v == "main" then io.write("main index is".." "..k.."\n") return k end diff --git a/bruiser/lua-scripts/demo3.lua b/bruiser/lua-scripts/demo3.lua index 89dde81..0e8e309 100644 --- a/bruiser/lua-scripts/demo3.lua +++ b/bruiser/lua-scripts/demo3.lua @@ -10,4 +10,10 @@ function demo3.init() table_type:set_resizable_limit(resizable_limit) end +function demo3.getmodule_py() + local wasm = require("wasm") + local wasm_module = Wasm_Module() + local wasm_module = objload("dwasm", "elf_get_obj_names", elf_file, "symbol_list") +end + return demo3 diff --git a/bruiser/lua-scripts/regtest.lua b/bruiser/lua-scripts/regtest.lua index f7ec461..9cb1250 100644 --- a/bruiser/lua-scripts/regtest.lua +++ b/bruiser/lua-scripts/regtest.lua @@ -3,10 +3,19 @@ --local posix = require("posix") function reg_test() - local demo1 = require("demo1") - local demo2 = require("demo2") - local demo3 = require("asmtest") - print("yo") + local xobj = require("demo1") + local jmp_table = require("demo2") + local asm_rewriter = require("asmtest") + local wasm_import = require("demo3") + + local argparse = require("argparse") + + local parser = argparse("regtest", "bruiser's regression test script") + parser:flag("-x --xobj") + parser:flag("-j --jmpt") + parser:flag("-a --asm") + parser:flag("-w --wasm") + end reg_test() |