premake/tests/actions/vstudio/vc2010/test_floatingpoint.lua

53 lines
1.0 KiB
Lua
Raw Normal View History

2015-03-26 14:22:55 +00:00
---
-- tests/actions/vstudio/vc2010/test_floatingpoint.lua
-- Validate handling of vectorextensions() in VS 2010 C/C++ projects.
--
-- Created 26 Mar 2015 by Jason Perkins
-- Copyright (c) 2015 Jason Perkins and the Premake project
---
local suite = test.declare("vs2010_vc_floatingpoint")
local m = premake.vstudio.vc2010
2015-08-28 20:16:14 +00:00
local wks, prj
2015-03-26 14:22:55 +00:00
function suite.setup()
premake.action.set("vs2010")
2015-08-28 20:16:14 +00:00
wks, prj = test.createWorkspace()
2015-03-26 14:22:55 +00:00
end
local function prepare()
local cfg = test.getconfig(prj, "Debug")
m.floatingPointModel(cfg)
end
function suite.instructionSet_onNotSet()
test.isemptycapture()
end
function suite.floatingPoint_onFloatFast()
floatingpoint "fast"
2015-03-26 14:22:55 +00:00
prepare()
test.capture [[
<FloatingPointModel>Fast</FloatingPointModel>
]]
end
function suite.floatingPoint_onFloatStrict()
floatingpoint "strict"
2015-03-26 14:22:55 +00:00
prepare()
test.capture [[
<FloatingPointModel>Strict</FloatingPointModel>
]]
end
function suite.floatingPoint_onDefault()
floatingpoint "Default"
prepare()
test.isemptycapture()
end