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-09-16 01:08:40 +0400
committerstarkos <none@none>2009-09-16 01:08:40 +0400
commit7c51b98b0d215357d0ff936d8c6dabea0e8c156a (patch)
treea711e786c52681e83b40dac2efdd7795dd22b661 /tests/premake4.lua
parent815727cb242928f2386627736600db6b66ec3084 (diff)
Cleaned up PBXBuildFile and PBXFileReference sections
Diffstat (limited to 'tests/premake4.lua')
-rw-r--r--tests/premake4.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/premake4.lua b/tests/premake4.lua
index 18ca03f..4583b3a 100644
--- a/tests/premake4.lua
+++ b/tests/premake4.lua
@@ -5,6 +5,38 @@
--
dofile("testfx.lua")
+
+--
+-- Some helper functions
+--
+
+ test.createsolution = function()
+ local sln = solution "MySolution"
+ configurations { "Debug", "Release" }
+
+ local prj = project "MyProject"
+ language "C++"
+ kind "ConsoleApp"
+
+ return sln, prj
+ end
+
+
+ test.createproject = function(sln)
+ local n = #sln.projects + 1
+ if n == 1 then n = "" end
+
+ local prj = project ("MyProject" .. n)
+ language "C++"
+ kind "ConsoleApp"
+ return prj
+ end
+
+
+--
+-- The test suites
+--
+
dofile("test_dofile.lua")
dofile("test_os.lua")
dofile("test_path.lua")