aboutsummaryrefslogtreecommitdiff
path: root/spec/test1_spec.lua
diff options
context:
space:
mode:
authorAlexander <alex@cogarr.net>2019-06-28 16:13:30 -0400
committerAlexander <alex@cogarr.net>2019-06-28 16:13:30 -0400
commit456ee9baefb343e98dc94678e05335a547786c2a (patch)
treef99e44197b789882ea04db01f3aabee99216f3bd /spec/test1_spec.lua
parent4c9856b6876f10a6104761781571a9b7e502561d (diff)
downloadbrokengine-456ee9baefb343e98dc94678e05335a547786c2a.tar.gz
brokengine-456ee9baefb343e98dc94678e05335a547786c2a.tar.bz2
brokengine-456ee9baefb343e98dc94678e05335a547786c2a.zip
Added more tests
Fixed up the networking test, and added something to create the deviceinit file in the first test (so the tests just just run on a new clone now)
Diffstat (limited to 'spec/test1_spec.lua')
-rw-r--r--spec/test1_spec.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/test1_spec.lua b/spec/test1_spec.lua
index 9844204..81df8f0 100644
--- a/spec/test1_spec.lua
+++ b/spec/test1_spec.lua
@@ -1,5 +1,26 @@
print("Hello, world!")
+--[[Create the headless client init file]]
+local f = io.open("spec/headless/deviceinit.lua","w")
+f:write([=[
+return {
+ ["Anti Alias"] = 16,
+ ["Bits Per Pixel"] = 16,
+ ["Device Type"] = "BEST",
+ ["Display Adapter"] = 0,
+ ["Double Buffer"] = true,
+ ["Multithreaded"] = false,
+ ["Driver Type"] = "NULL",
+ ["Fullscreen"] = false,
+ ["Stencil Buffer"] = true,
+ ["Stereo Buffer"] = false,
+ ["VSync"] = true,
+ ["Window Width"] = 640,
+ ["Window Height"] = 480,
+}
+]=])
+f:close()
+
function rungame()
f = io.popen("bin\\client\\bin\\brokengine_client.exe spec/headless","r")
d = f:read("*all")