Pass CMake arguments to mutation builds
All checks were successful
libakerror CI Build / cmake_build (push) Successful in 2m51s
libakerror CI Build / cmake_build_freestanding (push) Successful in 2m39s
libakerror CI Build / sanitizer (push) Successful in 2m59s
libakerror CI Build / coverage (push) Successful in 2m49s
libakerror CI Build / mutation_test (push) Successful in 47m20s
All checks were successful
libakerror CI Build / cmake_build (push) Successful in 2m51s
libakerror CI Build / cmake_build_freestanding (push) Successful in 2m39s
libakerror CI Build / sanitizer (push) Successful in 2m59s
libakerror CI Build / coverage (push) Successful in 2m49s
libakerror CI Build / mutation_test (push) Successful in 47m20s
This commit is contained in:
@@ -32,6 +32,9 @@ scripts/mutation_test.py --target src/error.c --list
|
||||
|
||||
# Gate CI: exit non-zero if the score drops below 90%
|
||||
scripts/mutation_test.py --threshold 90
|
||||
|
||||
# Check concurrency mutants under ThreadSanitizer
|
||||
scripts/mutation_test.py --cmake-arg=-DAKERR_SANITIZE=thread
|
||||
```
|
||||
|
||||
Via CMake (configures a build first if needed):
|
||||
@@ -40,8 +43,10 @@ Via CMake (configures a build first if needed):
|
||||
cmake --build build --target mutation
|
||||
```
|
||||
|
||||
Useful flags: `--timeout SECONDS` (per-suite build+test cap; a mutant that
|
||||
hangs is counted as killed), `--keep` (retain the scratch copy for debugging),
|
||||
Useful flags: `--cmake-arg ARG` (pass a CMake configure argument to every
|
||||
mutant build; repeat it for multiple arguments), `--timeout SECONDS` (per-suite
|
||||
build+test cap; a mutant that hangs is counted as killed), `--keep` (retain the
|
||||
scratch copy for debugging),
|
||||
`--work DIR` (use a specific scratch directory), `--junit FILE` (write a JUnit
|
||||
XML report — surviving mutants appear as failing test cases).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user