2012-09-27 21:07:32 +00:00
|
|
|
--
|
|
|
|
-- tests/base/test_premake_command.lua
|
|
|
|
-- Test the initialization of the _PREMAKE_COMMAND global.
|
2013-09-10 20:24:39 +00:00
|
|
|
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
|
2012-09-27 21:07:32 +00:00
|
|
|
--
|
|
|
|
|
2013-09-10 20:24:39 +00:00
|
|
|
local suite = test.declare("premake_command")
|
2012-09-27 21:07:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
function suite.valueIsSet()
|
2013-09-10 20:24:39 +00:00
|
|
|
local filename = iif(os.is("windows"), "premake5.exe", "premake5")
|
2012-09-27 21:07:32 +00:00
|
|
|
test.isequal(path.getabsolute("../bin/debug/" .. filename), _PREMAKE_COMMAND)
|
|
|
|
end
|