-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add rust container flavor (#351)
* feat: add rust container flavor * ci: fix linter findings * ci: ignore some linter findings * ci: run for all flavours * ci: fix tests for rust container flavor * chore: add pkg-config * ci: fix linter findings * chore: modify build and push workflow for flavors * chore: reduce container size * chore: add Docker extension to devcontainer.json * chore: update rust from 1.76.0 to 1.77.2 * ci: publish result of all testsuites * ci: fix duplicate artifact * Update ci.yml * ci: different fix for multiple artifacts * ci: update all automation to cope with multiple containers * chore: move update-apt-packages to own action * chore: add flip-link package * chore: process review comments * chore: merge the -vscode image into the main image * Update build-push.yml * chore: minor fix after merge * chore: move Rust container to Ubuntu 24.04 * chore: update Rust to latest version * chore: update Docker cli from 25.0.3 to 26.1.1 * chore: add more test for Rust container * chore: reduce duplication in test code * chore: add test for coverage * chore: remove unused bats tags * chore: don't use run in bats tests when not needed See also: https://bats-core.readthedocs.io/en/stable/writing-tests.html#when-not-to-use-run * chore: add mutation testing support to Rust container * chore: correct test name to beter reflect its actual scope * docs: update documentation
- Loading branch information
Showing
68 changed files
with
819 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
option(ENABLE_COVERAGE_TEST Off) | ||
option(ENABLE_MUTATION_TESTING_TEST Off) | ||
|
||
include(FetchContent) | ||
|
||
FetchContent_Declare(googletest | ||
GIT_REPOSITORY https://github.com/google/googletest | ||
GIT_TAG v1.14.0 | ||
) | ||
|
||
if (ENABLE_COVERAGE_TEST) | ||
FetchContent_MakeAvailable(googletest) | ||
|
||
add_executable(test-coverage EXCLUDE_FROM_ALL test.cpp) | ||
target_compile_options(test-coverage PRIVATE | ||
-g -O0 --coverage -fprofile-arcs -ftest-coverage -fno-inline | ||
) | ||
target_link_libraries(test-coverage PRIVATE gmock_main gcov) | ||
add_test(NAME test-coverage COMMAND test-coverage) | ||
endif() | ||
|
||
if (ENABLE_MUTATION_TESTING_TEST) | ||
FetchContent_MakeAvailable(googletest) | ||
|
||
add_executable(test-mutation EXCLUDE_FROM_ALL test.cpp) | ||
target_compile_options(test-mutation PRIVATE | ||
-g -O0 -grecord-command-line -fprofile-instr-generate -fcoverage-mapping -fpass-plugin=/usr/lib/mull-ir-frontend | ||
) | ||
target_link_libraries(test-mutation PRIVATE gmock_main) | ||
add_test(NAME test-mutation COMMAND mull-runner $<TARGET_FILE:test-mutation>) | ||
endif() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.