diff options
author | Jason Perkins <starkos@industriousone.com> | 2012-09-28 00:59:20 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2012-09-28 00:59:20 +0400 |
commit | c538fd7d3969d1c5f2a4502eb20703ca5c25ed3e (patch) | |
tree | 1893eea18ea8edc0b92b7f4c6e8946674a8f9b0c /tests/base | |
parent | 445d3176dd172a46d064efd89492c22274adf2ce (diff) |
Patch 3485071: Fixed _PREMAKE_COMMAND fallback when premake4 is not in PATH (Konstantin Tokarev)
Diffstat (limited to 'tests/base')
-rw-r--r-- | tests/base/test_premake_command.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/base/test_premake_command.lua b/tests/base/test_premake_command.lua new file mode 100644 index 0000000..0c29c5f --- /dev/null +++ b/tests/base/test_premake_command.lua @@ -0,0 +1,14 @@ +-- +-- tests/base/test_premake_command.lua +-- Test the initialization of the _PREMAKE_COMMAND global. +-- Copyright (c) 2012 Jason Perkins and the Premake project +-- + + T.premake_command = { } + local suite = T.premake_command + + + function suite.valueIsSet() + local filename = iif(os.is("windows"), "premake4.exe", "premake4") + test.isequal(path.getabsolute("../bin/debug/" .. filename), _PREMAKE_COMMAND) + end |