From f91def371d6e0f321f052e296af353100ec90a3a Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Sun, 30 Aug 2020 11:25:06 +0200 Subject: [PATCH] Split UTs according to review. --- .../codelite/tests/test_codelite_config.lua | 42 ++++++++++++++++--- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/modules/codelite/tests/test_codelite_config.lua b/modules/codelite/tests/test_codelite_config.lua index e1bfe946..bece03d4 100644 --- a/modules/codelite/tests/test_codelite_config.lua +++ b/modules/codelite/tests/test_codelite_config.lua @@ -57,18 +57,28 @@ end function suite.OnProjectCfg_Includes() - sysincludedirs { "sysdir", "sysdir2/"} includedirs { "dir/", "dir2" } prepare() codelite.project.compiler(cfg) test.capture [[ - + ]] end + function suite.OnProjectCfg_SysIncludes() + sysincludedirs { "sysdir", "sysdir2/"} + prepare() + codelite.project.compiler(cfg) + test.capture [[ + + + ]] + end + + function suite.OnProjectCfg_Defines() defines { "TEST", "DEF", "VAL=1", "ESCAPE=\"WITH SPACE\"" } prepare() @@ -127,16 +137,36 @@ function suite.OnProjectCfg_ResInclude() files { "x.rc" } - includedirs { "dir/" } + resincludedirs { "dir/" } + prepare() + codelite.project.resourceCompiler(cfg) + test.capture [[ + + + + ]] + end + + function suite.OnProjectCfg_ResRegularInclude() + files { "x.rc" } + includedirs { "regulardir/" } + prepare() + codelite.project.resourceCompiler(cfg) + test.capture [[ + + + + ]] + end + + function suite.OnProjectCfg_ResSysInclude() + files { "x.rc" } sysincludedirs { "sysdir/" } - resincludedirs { "resdir/" } prepare() codelite.project.resourceCompiler(cfg) test.capture [[ - - ]] end