Skip to content

Commit

Permalink
Run benchcomp unit and regression tests in CI (model-checking#2382)
Browse files Browse the repository at this point in the history
This will ensure that benchcomp will continue to correctly parse future changes to Kani's output.
  • Loading branch information
karkhaz authored Apr 19, 2023
1 parent 270bac3 commit 588baf0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/kani.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,29 @@ jobs:
KANI_ENABLE_WRITE_JSON_SYMTAB: 1
run: ./scripts/kani-regression.sh

benchcomp-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout Kani
uses: actions/checkout@v3

- name: Install benchcomp dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
pushd tools/benchcomp && pip3 install -r requirements.txt
- name: Setup Kani Dependencies
uses: ./.github/actions/setup
with:
os: ubuntu-20.04

- name: Build Kani using release mode
run: cargo build-dev -- --release

- name: Run benchcomp unit and regression tests
run: pushd tools/benchcomp && PATH=$(realpath ../../scripts):$PATH test/run

perf:
runs-on: ubuntu-20.04
steps:
Expand Down
3 changes: 2 additions & 1 deletion scripts/ci/copyright-exclude
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.png
.props
.public.key
Cargo.lock
CHANGELOG
Cargo.lock
LICENSE-APACHE
LICENSE-MIT
editorconfig
Expand All @@ -16,6 +16,7 @@ gitignore
gitmodules
ignore
kani-dependencies
requirements.txt
scripts/ci/copyright-exclude
tests/remote-target-lists/.*
tools/build-kani/license-notes.txt
2 changes: 2 additions & 0 deletions tools/benchcomp/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cerberus
pyyaml

0 comments on commit 588baf0

Please sign in to comment.