diff options
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") |