Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/kani.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ jobs:
os: ubuntu-20.04

- name: Build Kani
run: cargo build-dev
run: cargo build-dev -- --features write_json_symtab

- name: Run tests
run: |
cargo run -p compiletest --quiet -- --suite kani --mode kani --quiet --no-fail-fast
cargo run -p compiletest --quiet -- --suite expected --mode expected --quiet --no-fail-fast
cargo run -p compiletest --quiet -- --suite cargo-kani --mode cargo-kani --quiet --no-fail-fast

- name: Execute Kani regression
env:
KANI_ENABLE_WRITE_JSON_SYMTAB: 1
run: ./scripts/kani-regression.sh

benchcomp-tests:
runs-on: ubuntu-20.04
Expand Down
8 changes: 4 additions & 4 deletions kani-driver/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ impl Project {
let goto = Artifact::try_new(&goto_path, Goto)?;

// All other harness artifacts that may have been generated as part of the build.
artifacts.extend([TypeMap, VTableRestriction, PrettyNameMap].iter().filter_map(
|typ| {
artifacts.extend(
[SymTab, TypeMap, VTableRestriction, PrettyNameMap].iter().filter_map(|typ| {
let artifact = Artifact::try_from(&symtab_out, *typ).ok()?;
Some(artifact)
},
));
}),
);
artifacts.push(symtab_out);
artifacts.push(goto);
}
Expand Down
13 changes: 3 additions & 10 deletions scripts/kani-regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ check_kissat_version.sh
${SCRIPT_DIR}/kani-fmt.sh --check

# Build all packages in the workspace
if [[ "" != "${KANI_ENABLE_WRITE_JSON_SYMTAB-}" ]]; then
cargo build-dev -- --features write_json_symtab
else
cargo build-dev
fi
cargo build-dev

# Unit tests
cargo test -p cprover_bindings
Expand Down Expand Up @@ -69,11 +65,8 @@ for testp in "${TESTS[@]}"; do
--quiet --no-fail-fast
done

# Don't run std regression if using JSON symtab to avoid OOM issues.
if [[ -z "${KANI_ENABLE_WRITE_JSON_SYMTAB-}" ]]; then
# Check codegen for the standard library
time "$SCRIPT_DIR"/std-lib-regression.sh
fi
# Check codegen for the standard library
time "$SCRIPT_DIR"/std-lib-regression.sh

# We rarely benefit from re-using build artifacts in the firecracker test,
# and we often end up with incompatible leftover artifacts:
Expand Down