aboutsummaryrefslogtreecommitdiff
path: root/spec/test1_spec.lua
diff options
context:
space:
mode:
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")