Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2009-04-20 23:46:23 +0400
committerstarkos <none@none>2009-04-20 23:46:23 +0400
commit947c253ef9fa612a33d16e727a26f5aaf0c3b76a (patch)
treeed8f193287c9368ce534eee5eddc77996cbf93bf /tests/test_platforms.lua
parent9cedd9eb5291261e2d90c0778cefe7d351d74a02 (diff)
Added support for "native" platform to Visual Studio
Diffstat (limited to 'tests/test_platforms.lua')
-rw-r--r--tests/test_platforms.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/test_platforms.lua b/tests/test_platforms.lua
index d3e6048..bb78eb0 100644
--- a/tests/test_platforms.lua
+++ b/tests/test_platforms.lua
@@ -7,7 +7,7 @@
T.platforms = { }
- local testmap = { x32="Win32", x64="x64" }
+ local testmap = { Native="Win32", x32="Win32", x64="x64" }
local sln, r
function T.platforms.setup()
@@ -29,22 +29,30 @@
end
function T.platforms.filter_OnIntersection()
- platforms { "x32", "x64", "xbox360" }
+ platforms { "x32", "x64", "Xbox360" }
premake.buildconfigs()
r = premake.filterplatforms(sln, testmap, "x32")
test.isequal("x32:x64", table.concat(r, ":"))
end
function T.platforms.filter_OnNoIntersection()
- platforms { "ppc", "xbox360" }
+ platforms { "Universal", "Xbox360" }
premake.buildconfigs()
r = premake.filterplatforms(sln, testmap)
test.isequal("", table.concat(r, ":"))
end
function T.platforms.filter_OnNoIntersectionAndDefault()
- platforms { "ppc", "xbox360" }
+ platforms { "Universal", "Xbox360" }
premake.buildconfigs()
r = premake.filterplatforms(sln, testmap, "x32")
test.isequal("x32", table.concat(r, ":"))
end
+
+ function T.platforms.filter_OnDuplicateKeys()
+ platforms { "Native", "x32" }
+ premake.buildconfigs()
+ r = premake.filterplatforms(sln, testmap, "x32")
+ test.isequal("Native", table.concat(r, ":"))
+ end
+