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 | 0c0a284b18ecb86ec1a1efc71d4a18566f207835 (patch) | |
tree | 1893eea18ea8edc0b92b7f4c6e8946674a8f9b0c /tests | |
parent | 4e8d01487d3bb90a66098d03ab5d0e8a4b29af3f (diff) |
Patch 3485071: Fixed _PREMAKE_COMMAND fallback when premake4 is not in PATH (Konstantin Tokarev)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/base/test_premake_command.lua | 14 | ||||
-rw-r--r-- | tests/premake4.lua | 1 |
2 files changed, 15 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 diff --git a/tests/premake4.lua b/tests/premake4.lua index ea3a122..a2d0d5f 100644 --- a/tests/premake4.lua +++ b/tests/premake4.lua @@ -51,6 +51,7 @@ dofile("base/test_location.lua") dofile("base/test_os.lua") dofile("base/test_path.lua") + dofile("base/test_premake_command.lua") dofile("base/test_table.lua") dofile("base/test_tree.lua") dofile("tools/test_gcc.lua") |