Pass _PREMAKE_COMMAND unit test when executable uses a non-standard name or location
This commit is contained in:
parent
d5ef6f4c32
commit
0df2020f6b
@ -1,13 +1,12 @@
|
||||
--
|
||||
-- tests/base/test_premake_command.lua
|
||||
-- Test the initialization of the _PREMAKE_COMMAND global.
|
||||
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
|
||||
-- Copyright (c) 2012-2014 Jason Perkins and the Premake project
|
||||
--
|
||||
|
||||
local suite = test.declare("premake_command")
|
||||
|
||||
|
||||
function suite.valueIsSet()
|
||||
local filename = iif(os.is("windows"), "premake5.exe", "premake5")
|
||||
test.isequal(path.getabsolute("../bin/debug/" .. filename), _PREMAKE_COMMAND)
|
||||
test.istrue(os.isfile(_PREMAKE_COMMAND))
|
||||
end
|
||||
|
Reference in New Issue
Block a user