1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
--
-- tests/tests_stress.lua
-- Stress test for Premake.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
local numprojects = 100
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", "DebugDLL", "ReleaseDLL" }
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
|