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
path: root/tests
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2011-10-21 00:36:24 +0400
committerJason Perkins <starkos@industriousone.com>2011-10-21 00:36:24 +0400
commit1cb9aad19be8ac08da20600a813e62ebdd40091f (patch)
tree73609482d8514337ee383556522b30adc07c8551 /tests
parent56036f99d9ab29e8261b15a3ee9613de53181ced (diff)
Patch 3367641: Remove warnings in Xcode 4
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/xcode/test_xcode4_project.lua59
-rw-r--r--tests/actions/xcode/test_xcode_dependencies.lua4
-rw-r--r--tests/actions/xcode/test_xcode_project.lua35
-rw-r--r--tests/premake4.lua1
4 files changed, 65 insertions, 34 deletions
diff --git a/tests/actions/xcode/test_xcode4_project.lua b/tests/actions/xcode/test_xcode4_project.lua
new file mode 100644
index 0000000..30cda28
--- /dev/null
+++ b/tests/actions/xcode/test_xcode4_project.lua
@@ -0,0 +1,59 @@
+--
+-- tests/actions/xcode/test_xcode4_project.lua
+-- Automated test suite for Xcode project generation.
+-- Copyright (c) 2011 Jason Perkins and the Premake project
+--
+
+ T.xcode4_project = { }
+
+ local suite = T.xcode4_project
+ local xcode = premake.xcode
+
+
+---------------------------------------------------------------------------
+-- Setup/Teardown
+---------------------------------------------------------------------------
+
+ local sln, tr
+ function suite.setup()
+ _ACTION = "xcode4"
+ io.eol = "\n"
+ xcode.used_ids = { } -- reset the list of generated IDs
+ sln = test.createsolution()
+ end
+
+ local function prepare()
+ premake.bake.buildconfigs()
+ xcode.preparesolution(sln)
+ local prj = premake.solution.getproject(sln, 1)
+ tr = xcode.buildprjtree(prj)
+ end
+
+
+---------------------------------------------------------------------------
+-- XCBuildConfiguration_Project tests
+---------------------------------------------------------------------------
+
+ function suite.XCBuildConfigurationProject_OnSymbols()
+ flags { "Symbols" }
+ prepare()
+ xcode.XCBuildConfiguration_Project(tr, tr.configs[1])
+ test.capture [[
+ [MyProject:Debug(2)] /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(NATIVE_ARCH_ACTUAL)";
+ CONFIGURATION_TEMP_DIR = "$(OBJROOT)";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ OBJROOT = "obj/Debug";
+ ONLY_ACTIVE_ARCH = YES;
+ };
+ name = "Debug";
+ };
+ ]]
+ end
diff --git a/tests/actions/xcode/test_xcode_dependencies.lua b/tests/actions/xcode/test_xcode_dependencies.lua
index e748b2b..ad14d5e 100644
--- a/tests/actions/xcode/test_xcode_dependencies.lua
+++ b/tests/actions/xcode/test_xcode_dependencies.lua
@@ -1,7 +1,7 @@
--
-- tests/actions/xcode/test_xcode_dependencies.lua
-- Automated test suite for Xcode project dependencies.
--- Copyright (c) 2009 Jason Perkins and the Premake project
+-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.xcode3_deps = { }
@@ -249,7 +249,7 @@
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "MyProject" */;
- compatibilityVersion = "Xcode 3.1";
+ compatibilityVersion = "Xcode 3.2";
hasScannedForEncodings = 1;
mainGroup = [MyProject] /* MyProject */;
projectDirPath = "";
diff --git a/tests/actions/xcode/test_xcode_project.lua b/tests/actions/xcode/test_xcode_project.lua
index 4ab50ba..1ecde36 100644
--- a/tests/actions/xcode/test_xcode_project.lua
+++ b/tests/actions/xcode/test_xcode_project.lua
@@ -1,7 +1,7 @@
--
-- tests/actions/xcode/test_xcode_project.lua
-- Automated test suite for Xcode project generation.
--- Copyright (c) 2009-2010 Jason Perkins and the Premake project
+-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.xcode3_project = { }
@@ -16,7 +16,7 @@
local sln, tr
function suite.setup()
- premake.action.set("xcode3")
+ _ACTION = "xcode3"
io.eol = "\n"
xcode.used_ids = { } -- reset the list of generated IDs
sln = test.createsolution()
@@ -656,7 +656,7 @@
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "MyProject" */;
- compatibilityVersion = "Xcode 3.1";
+ compatibilityVersion = "Xcode 3.2";
hasScannedForEncodings = 1;
mainGroup = [MyProject] /* MyProject */;
projectDirPath = "";
@@ -1084,7 +1084,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1109,7 +1108,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1134,7 +1132,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1159,7 +1156,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static;
};
name = "Debug";
@@ -1186,7 +1182,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
SYMROOT = "bin";
};
name = "Debug";
@@ -1216,7 +1211,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1245,7 +1239,6 @@
);
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1274,7 +1267,6 @@
"build option 1",
"build option 2",
);
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1302,7 +1294,6 @@
OTHER_LDFLAGS = (
"-lldap",
);
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1330,7 +1321,6 @@
"link option 1",
"link option 2",
);
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1355,7 +1345,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
WARNING_CFLAGS = "-Wall";
};
name = "Debug";
@@ -1382,7 +1371,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1410,7 +1398,6 @@
OTHER_CFLAGS = (
"-ffast-math",
);
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1438,7 +1425,6 @@
OTHER_CFLAGS = (
"-ffloat-store",
);
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1464,7 +1450,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = YES;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1491,7 +1476,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1519,7 +1503,6 @@
OTHER_CFLAGS = (
"-fomit-frame-pointer",
);
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1545,7 +1528,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1571,7 +1553,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1598,7 +1579,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = YES;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1627,7 +1607,6 @@
);
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1654,7 +1633,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1679,7 +1657,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Universal/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1704,7 +1681,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Universal32/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1729,7 +1705,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Universal64/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1754,7 +1729,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1779,7 +1753,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/x32/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1804,7 +1777,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/x64/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug";
};
@@ -1828,7 +1800,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
OBJROOT = "obj/Universal32/Debug";
ONLY_ACTIVE_ARCH = NO;
- PREBINDING = NO;
};
name = "Debug 32-bit Universal";
};
diff --git a/tests/premake4.lua b/tests/premake4.lua
index 7f915c9..9f5030e 100644
--- a/tests/premake4.lua
+++ b/tests/premake4.lua
@@ -121,6 +121,7 @@
dofile("actions/xcode/test_xcode_dependencies.lua")
-- Xcode4 tests
+ dofile("actions/xcode/test_xcode4_project.lua")
dofile("actions/xcode/test_xcode4_workspace.lua")
-- CodeLite tests