Skip to content

Commit

Permalink
Mark performance regressions as ignored for now
Browse files Browse the repository at this point in the history
and enable them to be executed as part of CBMC nightly
  • Loading branch information
celinval committed Mar 8, 2023
1 parent 657ddda commit 4d3bed2
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cbmc-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,8 @@ jobs:
- name: Execute Kani performance tests
working-directory: ./kani
run: ./scripts/kani-perf.sh

- name: Execute Kani performance ignored tests
working-directory: ./kani
continue-on-error: true
run: cargo run -p compiletest -- --suite perf --mode cargo-kani-test ignore --ignored
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.
26 changes: 12 additions & 14 deletions tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,17 @@ pub fn make_test_description<R: Read>(
path: &Path,
src: R,
) -> test::TestDesc {
let mut ignore = false;
let mut should_fail = false;
let mut ignore_message = None;

if config.mode == Mode::Kani || config.mode == Mode::Stub {
// If the path to the test contains "fixme" or "ignore", skip it.
let file_path = path.to_str().unwrap();
(ignore, ignore_message) = if file_path.contains("fixme") {
(true, Some("fixme test"))
} else if file_path.contains("ignore") {
(true, Some("ignore test"))
} else {
(false, None)
};
}
// If the path to the test contains "fixme" or "ignore", skip it.
let file_path = path.to_str().unwrap();
let (mut ignore, mut ignore_message) = if file_path.contains("fixme") {
(true, Some("fixme test"))
} else if file_path.contains("ignore") {
(true, Some("ignore test"))
} else {
(false, None)
};

// The `KaniFixme` mode runs tests that are ignored in the `kani` suite
if config.mode == Mode::KaniFixme {
Expand All @@ -207,8 +203,10 @@ pub fn make_test_description<R: Read>(

// If the base name does NOT contain "fixme" or "ignore", we skip it.
// All "fixme" tests are expected to fail
(ignore, ignore_message) = if base_name.contains("fixme") || base_name.contains("ignore") {
(ignore, ignore_message) = if base_name.contains("fixme") {
(false, None)
} else if base_name.contains("ignore") {
(true, Some("ignore test"))
} else {
(true, Some("regular test"))
};
Expand Down

0 comments on commit 4d3bed2

Please sign in to comment.