1
0

test_stress.lua 866 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --
  2. -- tests/tests_stress.lua
  3. -- Stress test for Premake.
  4. -- Copyright (c) 2009 Jason Perkins and the Premake project
  5. --
  6. local numprojects = 100
  7. local numfiles = 100
  8. dofile("pepperfish_profiler.lua")
  9. profiler = newProfiler()
  10. function dumpresults(sorttotal)
  11. local outfile = io.open("build/profile.txt", "w+" )
  12. profiler:report(outfile, sorttotal)
  13. outfile:close()
  14. end
  15. solution "MySolution"
  16. configurations { "Debug", "Release", "DebugDLL", "ReleaseDLL" }
  17. platforms { "Native", "x32", "x64" }
  18. location "build"
  19. configuration "Debug"
  20. defines { "_DEBUG" }
  21. flags { "Symbols" }
  22. configuration "Release"
  23. defines { "NDEBUG" }
  24. flags { "Optimize" }
  25. for pi = 1, numprojects do
  26. project ("Project" .. pi)
  27. location "build"
  28. kind "ConsoleApp"
  29. language "C++"
  30. for fi = 1, numfiles do
  31. files { "file" .. fi .. ".cpp" }
  32. end
  33. end