2009-04-28 00:19:44 +00:00
|
|
|
--
|
|
|
|
-- tests/tests_stress.lua
|
|
|
|
-- Stress test for Premake.
|
|
|
|
-- Copyright (c) 2009 Jason Perkins and the Premake project
|
|
|
|
--
|
|
|
|
|
2009-04-28 15:34:53 +00:00
|
|
|
local numprojects = 100
|
2009-04-28 00:19:44 +00:00
|
|
|
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"
|
2009-04-28 00:55:49 +00:00
|
|
|
configurations { "Debug", "Release", "DebugDLL", "ReleaseDLL" }
|
2009-04-28 14:17:20 +00:00
|
|
|
platforms { "Native", "x32", "x64" }
|
2009-04-28 00:19:44 +00:00
|
|
|
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
|