This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

source: ps/trunk/build/premake/premake5/tests/test_premake.lua

Last change on this file was 20366, checked in by Itms, 7 years ago

Alpha 12 version of Premake 5, including prebuilt binary for Windows.
Directly taken from https://premake.github.io/.

Refs #3729.

File size: 676 bytes
Line 
1--
2-- tests/test_premake.lua
3-- Automated test suite for the Premake support functions.
4-- Copyright (c) 2008-2015 Jason Perkins and the Premake project
5--
6
7
8 local suite = test.declare("premake")
9
10 local p = premake
11
12
13--
14-- Setup
15--
16
17 local wks, prj
18 function suite.setup()
19 wks = test.createWorkspace()
20 location "MyLocation"
21 prj = p.workspace.getproject(wks, 1)
22 end
23
24
25--
26-- generate() tests
27--
28
29 function suite.generate_OpensCorrectFile()
30 p.generate(prj, ".prj", function () end)
31 test.openedfile(path.join(os.getcwd(), "MyLocation/MyProject.prj"))
32 end
33
34 function suite.generate_ClosesFile()
35 p.generate(prj, ".prj", function () end)
36 test.closedfile(true)
37 end
Note: See TracBrowser for help on using the repository browser.