diff options
author | 2016-11-03 10:04:29 +0100 | |
---|---|---|
committer | 2016-11-03 10:04:29 +0100 | |
commit | 330e3cb28ec6ab5af62fa17f5293c86a18c25ab0 (patch) | |
tree | e250e077d64abd0d9bc4f604278bf029d4b6f3f9 /3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua | |
parent | a74e7b041e5d3231c10b244894e298aba710689d (diff) |
Finally sync with GENie, no more local changes (nw)
Diffstat (limited to '3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua')
-rw-r--r-- | 3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua b/3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua deleted file mode 100644 index 34945f3da1d..00000000000 --- a/3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua +++ /dev/null @@ -1,101 +0,0 @@ --- --- tests/actions/codeblocks/codeblocks_files.lua --- Validate generation of files block in CodeLite C/C++ projects. --- Copyright (c) 2011 Jason Perkins and the Premake project --- - - T.codeblocks_files = { } - local suite = T.codeblocks_files - 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 - - --- --- Test grouping and nesting --- - - function suite.SimpleSourceFile() - files { "hello.cpp" } - prepare() - test.capture [[ - <Unit filename="hello.cpp"> - </Unit> - ]] - end - - - function suite.SingleFolderLevel() - files { "src/hello.cpp" } - prepare() - test.capture [[ - <Unit filename="src/hello.cpp"> - </Unit> - ]] - end - - - function suite.MultipleFolderLevels() - files { "src/greetings/hello.cpp" } - prepare() - test.capture [[ - <Unit filename="src/greetings/hello.cpp"> - </Unit> - ]] - end - - --- --- Test source file type handling --- - - function suite.CFileInCppProject() - files { "hello.c" } - prepare() - test.capture [[ - <Unit filename="hello.c"> - <Option compilerVar="CC" /> - </Unit> - ]] - end - - - function suite.WindowsResourceFile() - files { "hello.rc" } - prepare() - test.capture [[ - <Unit filename="hello.rc"> - <Option compilerVar="WINDRES" /> - </Unit> - ]] - end - - - function suite.PchFile() - files { "hello.h" } - pchheader "hello.h" - prepare() - test.capture [[ - <Unit filename="hello.h"> - <Option compilerVar="CPP" /> - <Option compile="1" /> - <Option weight="0" /> - <Add option="-x c++-header" /> - </Unit> - ]] - end |