summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/tests/test_targets.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-11-16 20:54:15 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-11-16 21:00:28 +0100
commitffc04d2baede0eab5768aa6a2ca5ea67cfa9ed86 (patch)
tree30ba47be0d8ad4c1ba703eb911023f18db185d3b /3rdparty/genie/tests/test_targets.lua
parentf68779cf745b20f82ff1785207657aceed41fc3e (diff)
Sync with GENie and addition of VS2017 (nw)
Diffstat (limited to '3rdparty/genie/tests/test_targets.lua')
-rw-r--r--3rdparty/genie/tests/test_targets.lua52
1 files changed, 52 insertions, 0 deletions
diff --git a/3rdparty/genie/tests/test_targets.lua b/3rdparty/genie/tests/test_targets.lua
index e5308514bbb..6cbe2bb289a 100644
--- a/3rdparty/genie/tests/test_targets.lua
+++ b/3rdparty/genie/tests/test_targets.lua
@@ -156,6 +156,58 @@
end
+--
+-- Bundle tests
+--
+
+ function T.targets.Bundle_Build_WindowsNames()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "build", "posix", "windows", "macosx")
+ test.isequal([[../bin/MyProject.dll]], result.fullpath)
+ end
+
+ function T.targets.Bundle_Link_WindowsNames()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "link", "posix", "windows", "macosx")
+ test.isequal([[../bin/MyProject.lib]], result.fullpath)
+ end
+
+ function T.targets.Bundle_Build_PosixNames_OnWindows()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "build", "posix", "posix", "windows")
+ test.isequal([[../bin/MyProject.dll]], result.fullpath)
+ end
+
+ function T.targets.Bundle_Link_PosixNames_OnWindows()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "link", "posix", "posix", "windows")
+ test.isequal([[../bin/libMyProject.a]], result.fullpath)
+ end
+
+ function T.targets.Bundle_Build_PosixNames_OnLinux()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "build", "posix", "posix", "linux")
+ test.isequal([[../bin/libMyProject.so]], result.fullpath)
+ end
+
+ function T.targets.Bundle_Link_PosixNames_OnLinux()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "link", "posix", "posix", "linux")
+ test.isequal([[../bin/libMyProject.so]], result.fullpath)
+ end
+
+ function T.targets.Bundle_Build_PosixNames_OnMacOSX()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "build", "posix", "posix", "macosx")
+ test.isequal([[../bin/MyProject.bundle]], result.fullpath)
+ end
+
+ function T.targets.Bundle_Link_PosixNames_OnMacOSX()
+ cfg.kind = "Bundle"
+ result = premake.gettarget(cfg, "link", "posix", "posix", "macosx")
+ test.isequal([[../bin/MyProject.bundle]], result.fullpath)
+ end
+
--
-- StaticLib tests