aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/lua-scripts
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-07-23 07:40:39 +0000
committerbloodstalker <thabogre@gmail.com>2017-07-23 07:40:39 +0000
commit2b97985ac4768e57862835194902b28df0f96200 (patch)
treebd80c7ac8a7adce2162bceacbebf3d2f90cdf4e8 /bruiser/lua-scripts
parentadded bruiser smoke tests (diff)
downloadmutator-2b97985ac4768e57862835194902b28df0f96200.tar.gz
mutator-2b97985ac4768e57862835194902b28df0f96200.zip
test scripts for the precommit script to run, mainly copies of mutation-example and testfile1 lua scripts
Diffstat (limited to 'bruiser/lua-scripts')
-rw-r--r--bruiser/lua-scripts/pre1.lua45
-rw-r--r--bruiser/lua-scripts/pre2.lua12
2 files changed, 57 insertions, 0 deletions
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("-------------------------------------------------------------")
diff --git a/bruiser/lua-scripts/pre2.lua b/bruiser/lua-scripts/pre2.lua
new file mode 100644
index 0000000..9abd811
--- /dev/null
+++ b/bruiser/lua-scripts/pre2.lua
@@ -0,0 +1,12 @@
+setmakepath("./test/bruisertest")
+setbinpath("./test/bruisertest")
+make("clean")
+make("all")
+--extractmutagen("test.cpp")
+text = hijackmain()
+file = io.open("./test/bruisertest/mutant.cpp", "w")
+print("------------------------------------------------------------------")
+print(text)
+print("------------------------------------------------------------------")
+file:write()
+file:close()