From 2b97985ac4768e57862835194902b28df0f96200 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 23 Jul 2017 12:10:39 +0430 Subject: test scripts for the precommit script to run, mainly copies of mutation-example and testfile1 lua scripts --- bruiser/lua-scripts/pre1.lua | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bruiser/lua-scripts/pre1.lua (limited to 'bruiser/lua-scripts/pre1.lua') diff --git a/bruiser/lua-scripts/pre1.lua b/bruiser/lua-scripts/pre1.lua new file mode 100644 index 0000000..b739cb9 --- /dev/null +++ b/bruiser/lua-scripts/pre1.lua @@ -0,0 +1,45 @@ +function printfunction() + local c = {Funcs()} + for k,v in pairs(c) do + print(k,v) + end +end + +print("-------------------------------------------------------------") +print("START") +print("-------------------------------------------------------------") +print(Vars()) +print("-------------------------------------------------------------") + +print(Funcs()) +print("-------------------------------------------------------------") + +print(showsource(1,5,"test.cpp")) +print("-------------------------------------------------------------") + +a={showsource(1,5,"test.cpp")} +for k,v in pairs(a) do + print(k,v) +end +print("-------------------------------------------------------------") + +b={Vars()} +for k,v in pairs(b) do + print(k,v) +end +print("-------------------------------------------------------------") + +print("today is:") +print("-------------------------------------------------------------") + +print(os.date()) +print("-------------------------------------------------------------") + +text=hijackmain() +print(text) +print("-------------------------------------------------------------") + +printfunction() +print("-------------------------------------------------------------") +print("THE END") +print("-------------------------------------------------------------") -- cgit v1.2.3