diff options
author | starkos <none@none> | 2009-08-12 05:16:15 +0400 |
---|---|---|
committer | starkos <none@none> | 2009-08-12 05:16:15 +0400 |
commit | 27d4d615535135cdfe97015cd3d8f88fdc27f449 (patch) | |
tree | fa52333796a4732d349f44e68d93a6e840f2563d /tests/test_premake.lua | |
parent | a04f948b60250d26600d29d1b4ee2e07e17a99c3 (diff) |
Began swapping out action templates for onsolution(), onproject() callbacks
Diffstat (limited to 'tests/test_premake.lua')
-rw-r--r-- | tests/test_premake.lua | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/test_premake.lua b/tests/test_premake.lua index ecbaa6d..c0b6964 100644 --- a/tests/test_premake.lua +++ b/tests/test_premake.lua @@ -1,7 +1,7 @@ -- -- tests/test_premake.lua -- Automated test suite for the Premake support functions. --- Copyright (c) 2008 Jason Perkins and the Premake project +-- Copyright (c) 2008-2009 Jason Perkins and the Premake project -- @@ -30,4 +30,18 @@ -
\ No newline at end of file +-- +-- generate() tests +-- + + function T.premake.generate_OpensCorrectFile() + prj = { name = "MyProject", location = "MyLocation" } + premake.generate(prj, "{name}.prj", function () end) + test.openedfile("MyLocation/MyProject.prj") + end + + function T.premake.generate_ClosesFile() + prj = { name = "MyProject", location = "MyLocation" } + premake.generate(prj, "{path}/{name}.prj", function () end) + test.closedfile(true) + end |