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:
Diffstat (limited to 'tests/test_stress.lua')
-rw-r--r--tests/test_stress.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/test_stress.lua b/tests/test_stress.lua
new file mode 100644
index 0000000..c5ab0bc
--- /dev/null
+++ b/tests/test_stress.lua
@@ -0,0 +1,44 @@
+--
+-- tests/tests_stress.lua
+-- Stress test for Premake.
+-- Copyright (c) 2009 Jason Perkins and the Premake project
+--
+
+local numprojects = 10
+local numfiles = 100
+
+dofile("pepperfish_profiler.lua")
+profiler = newProfiler()
+function dumpresults(sorttotal)
+ local outfile = io.open("build/profile.txt", "w+" )
+ profiler:report(outfile, sorttotal)
+ outfile:close()
+end
+
+
+solution "MySolution"
+ configurations { "Debug", "Release" }
+ platforms { "Native", "x32", "x64" }
+ location "build"
+
+ configuration "Debug"
+ defines { "_DEBUG" }
+ flags { "Symbols" }
+
+ configuration "Release"
+ defines { "NDEBUG" }
+ flags { "Optimize" }
+
+
+for pi = 1, numprojects do
+
+ project ("Project" .. pi)
+ location "build"
+ kind "ConsoleApp"
+ language "C++"
+
+ for fi = 1, numfiles do
+ files { "file" .. fi .. ".cpp" }
+ end
+
+end