blob: 1f454b8005f68a38e2c3dbb4bfc3a815d5086731 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
--
-- tests/actions/codeblocks/test_filters.lua
-- Test CodeBlocks virtual path support.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codeblocks_filters = { }
local suite = T.codeblocks_filters
local codeblocks = premake.codeblocks
--
-- Setup
--
local sln, prj
function suite.setup()
sln = test.createsolution()
end
local function prepare()
premake.bake.buildconfigs()
prj = premake.solution.getproject(sln, 1)
codeblocks.files(prj)
end
--
-- File/filter assignment tests
--
function suite.Filter_UsesVirtualForm_OnVpath()
files { "src/hello.cpp" }
vpaths { ["Source Files"] = "**.c" }
prepare()
test.capture [[
<Unit filename="src/hello.cpp">
<Option virtualFolder="Source Files" />
</Unit>
]]
end
|