--- -- codelite/tests/test_codelite_project.lua -- Automated test suite for CodeLite project generation. -- Copyright (c) 2015 Manu Evans and the Premake project --- local suite = test.declare("codelite_cproj") local p = premake local codelite = p.modules.codelite --------------------------------------------------------------------------- -- Setup/Teardown --------------------------------------------------------------------------- local wks, prj function suite.setup() p.action.set("codelite") p.indent(" ") wks = test.createWorkspace() end local function prepare() wks = p.oven.bakeWorkspace(wks) prj = test.getproject(wks, 1) end function suite.OnProject_Header() prepare() codelite.project.header(prj) test.capture [[ ]] end function suite.OnProject_Header_Windowed() kind "WindowedApp" prepare() codelite.project.header(prj) test.capture [[ ]] end function suite.OnProject_Header_Shared() kind "SharedLib" prepare() codelite.project.header(prj) test.capture [[ ]] end function suite.OnProject_Plugins() prepare() codelite.project.plugins(prj) test.capture [[ ]] end function suite.OnProject_Description() prepare() codelite.project.description(prj) test.capture [[ ]] end function suite.OnProject_Dependencies() prepare() codelite.project.dependencies(prj) test.capture [[ ]] end -- TODO: dependencies with actual dependencies... -- GlobalSettings is currently constants, so we'll just test it here function suite.OnProject_Settings() prepare() codelite.project.settings(prj) test.capture [[ ]] end