Put back test.createsolution() function

Restore `test.createsolution()` alongside the new `test.createWorkspace()`. The former creates a workspace with the name "MySolution", which will pass all tests using the old name, while the latter creates a workspace named "MyWorkspace" for consistency.
This commit is contained in:
Jason Perkins 2015-09-04 15:40:12 -04:00
parent b2f11fd3e3
commit 741bd5524e

View File

@ -249,15 +249,18 @@
function test.createWorkspace()
local wks = workspace("MyWorkspace")
configurations { "Debug", "Release" }
local prj = project("MyProject")
language("C++")
kind("ConsoleApp")
local prj = test.createproject(wks)
return wks, prj
end
p.alias(test, "createWorkspace", "createsolution")
-- Eventually we'll want to deprecate this one and move everyone
-- over to createWorkspace() instead (4 Sep 2015).
function test.createsolution()
local wks = workspace("MySolution")
configurations { "Debug", "Release" }
local prj = test.createproject(wks)
return wks, prj
end
function test.createproject(wks)