Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Added integration test for mutation score threshold feature (mutation score should be 50%, we set our threshold to 49% and expect the test runner to still return success)
  • Loading branch information
mpownby authored and AlexDenisov committed Jul 15, 2024
1 parent 4b254b7 commit 38f76c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests-lit/tests/runner/mutation-score-threshold/mull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mutators:
- cxx_init_const
- cxx_add_to_sub

quiet: false
17 changes: 17 additions & 0 deletions tests-lit/tests/runner/mutation-score-threshold/test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
int sum(int a, int b) {
return a + b;
}

int main() {
int r = sum(2, 5) == 7;
return !r;
}

// clang-format off

/*
RUN: %clang_cc %sysroot %s %pass_mull_ir_frontend -g -o %S/test.exe
RUN: cd /; unset TERM; %mull_runner --mutation-score-threshold 49 %S/test.exe
*/

0 comments on commit 38f76c1

Please sign in to comment.