- add ceedling/cmock/unity as testing framework and support
- unified makefile project for the whole repos - new separate project for tests
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
require 'constants'
|
||||
require 'file_path_utils'
|
||||
|
||||
# create file dependencies to ensure C-based components of vendor tools are recompiled when they are updated with new versions
|
||||
# forming these explicitly rather than depend on auxiliary dependencies so all scenarios are explicitly covered
|
||||
|
||||
file( @ceedling[:file_path_utils].form_test_build_object_filepath( UNITY_C_FILE ) => [
|
||||
FilePathUtils.form_ceedling_vendor_path( UNITY_LIB_PATH, UNITY_C_FILE ),
|
||||
FilePathUtils.form_ceedling_vendor_path( UNITY_LIB_PATH, UNITY_H_FILE ),
|
||||
FilePathUtils.form_ceedling_vendor_path( UNITY_LIB_PATH, UNITY_INTERNALS_H_FILE ) ]
|
||||
)
|
||||
|
||||
|
||||
if (PROJECT_USE_MOCKS)
|
||||
file( @ceedling[:file_path_utils].form_test_build_object_filepath( CMOCK_C_FILE ) => [
|
||||
FilePathUtils.form_ceedling_vendor_path( CMOCK_LIB_PATH, CMOCK_C_FILE ),
|
||||
FilePathUtils.form_ceedling_vendor_path( CMOCK_LIB_PATH, CMOCK_H_FILE ) ]
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
if (PROJECT_USE_EXCEPTIONS)
|
||||
file( @ceedling[:file_path_utils].form_test_build_object_filepath( CEXCEPTION_C_FILE ) => [
|
||||
FilePathUtils.form_ceedling_vendor_path( CEXCEPTION_LIB_PATH, CEXCEPTION_C_FILE ),
|
||||
FilePathUtils.form_ceedling_vendor_path( CEXCEPTION_LIB_PATH, CEXCEPTION_H_FILE ) ]
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
if (PROJECT_USE_EXCEPTIONS and PROJECT_RELEASE_BUILD)
|
||||
file( @ceedling[:file_path_utils].form_release_build_c_object_filepath( CEXCEPTION_C_FILE ) => [
|
||||
FilePathUtils.form_ceedling_vendor_path( CEXCEPTION_LIB_PATH, CEXCEPTION_C_FILE ),
|
||||
FilePathUtils.form_ceedling_vendor_path( CEXCEPTION_LIB_PATH, CEXCEPTION_H_FILE ) ]
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user