You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Move federated LF tests to test/lf/src/federated
* Add federated LF tests in Makefile
* Add LF test coverage and avoid rebuilding reactor-uc
* Fix ASAN errors in connection logging and event payload pool test
* Enhance runtime symlink handling in UcPlatformGenerator
* Add reusable LF test definitions and discovery functions
* Cleanup unused test definition and discovery functions
* Refactor CMake build to support independent unit and LF test/coverage builds.
* Add batch processing function in lfc.cmake to optimize LFC compilation
* Fix unit and LF test build configurations in Makefile
* Refactor LF test CMake
* Add unit-test and unit-test-lf-test to PHONY targets in Makefile
* Add environment variable for REACTOR_UC_PATH in coverage workflow
* Remove redundant path from include statements in legacy LF files
* Merge unit and LF tests into a single CI step
* Fix argument order in LFC command for single and batch runs
* Restore no-compile (-n) flag support in uC generator
* Revert include path
* Fix legacy LF test builds by adding source dir to include pathAdd
* Move federated LF tests to test/lf/src/federated
* Add federated LF tests in Makefile
* Add LF test coverage and avoid rebuilding reactor-uc
* Fix ASAN errors in connection logging and event payload pool test
* Enhance runtime symlink handling in UcPlatformGenerator
* Add reusable LF test definitions and discovery functions
* Cleanup unused test definition and discovery functions
* Refactor CMake build to support independent unit and LF test/coverage builds.
* Add batch processing function in lfc.cmake to optimize LFC compilation
* Fix unit and LF test build configurations in Makefile
* Refactor LF test CMake
* Add unit-test and unit-test-lf-test to PHONY targets in Makefile
* Add environment variable for REACTOR_UC_PATH in coverage workflow
* Remove redundant path from include statements in legacy LF files
* Merge unit and LF tests into a single CI step
* Fix argument order in LFC command for single and batch runs
* Restore no-compile (-n) flag support in uC generator
* Revert include path
* Fix legacy LF test builds by adding source dir to include pathAdd
* Simplify test/coverage.cmake with helper-function API
* Restore LF_DEBUG in Connection_register_downstream
* Refactor CI and Makefile to remove parallel execution in test commands
* Fix coverage configuration
* Suppress lcov unused pattern errors
* Merge lf_run_lfc and lf_run_lfc_batch functions in lfc.cmake
---------
Co-authored-by: tanneberger <github@tanneberger.me>
description: Restore (or populate) the LFC generated sources cache. This avoids the LFC generation step when the test files and the LFC files haven't changed, which can save a significant amount of time in the CI workflow.
3
+
4
+
outputs:
5
+
cache-hit:
6
+
description: Whether the src-gen cache was restored from a prior run.
set(FEDERATED OFFCACHEBOOL"Compile with federated sources")
14
13
15
-
# Code coverage setup
16
-
if(TEST_COVERAGE)
17
-
set(CMAKE_BUILD_TYPE"Debug")
18
-
include(external/cmake/CodeCoverage.cmake)
19
-
append_coverage_compiler_flags()
20
-
add_compile_options(-fprofile-update=atomic)
21
-
endif()
22
14
23
15
# Setup AddressSanitizer for chasing memory bugs.
24
16
if(ASAN)
@@ -30,8 +22,12 @@ endif()
30
22
if(BUILD_TESTS)
31
23
set(BUILD_LF_TESTS ON)
32
24
set(BUILD_UNIT_TESTS ON)
25
+
endif()
26
+
27
+
if(BUILD_UNIT_TESTS OR BUILD_LF_TESTS)
33
28
set(NETWORK_CHANNEL_TCP_POSIX ON) # TODO: This is currently needed because one of the tests uses this stack, we need a nicer way of selecting build options for tests and apps.
Copy file name to clipboardExpand all lines: Makefile
+23-8Lines changed: 23 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
-
.PHONY: clean test coverage asan format format-check ci lf-test lib proto docs platform-test examples complexity
1
+
.PHONY: clean test coverage asan format format-check ci lf-test lib proto docs platform-test examples complexity unit-test unit-test-lf-test lf-generate
2
2
3
-
test: unit-test lf-test platform-test examples
3
+
# Extra flags forwarded to every cmake configure (e.g. -DLF_SKIP_GENERATE=ON from CI)
0 commit comments