Skip to content

Commit

Permalink
Add existing roundtrip test to Kani CI and avoid recursive submoduling (
Browse files Browse the repository at this point in the history
tokio-rs#828)

* Add existing roundtrip test to Kani CI

* Bump up Kani version

* Remove `v` from GA version
  • Loading branch information
adpaco-aws authored and def- committed Jun 20, 2023
1 parent db1c809 commit 1dfee4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/continuous-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,14 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Verify with Kani
uses: model-checking/kani-github-action@v0.19
uses: model-checking/kani-github-action@0.23
with:
enable-propproof: true
args: |
--tests -p prost-types --default-unwind 3 \
--harness "tests::check_timestamp_roundtrip_via_system_time"
--harness "tests::check_timestamp_roundtrip_via_system_time" \
--harness "tests::check_duration_roundtrip_nanos"
# --default-unwind N roughly corresponds to how much effort
# Kani will spend trying to prove correctness of the
# program. Higher the number, more programs can be proven
Expand Down
4 changes: 2 additions & 2 deletions KANI.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ capabilities and limitations.
from the Kani repository.
```bash
git clone https://github.com/model-checking/kani.git --branch features/proptest propproof
cd propproof; git submodule update --init --recursive
cd propproof; git submodule update --init
```

Then, use `.cargo/config.toml` enable it in the local directory you
Expand All @@ -34,7 +34,7 @@ capabilities and limitations.

**Please Note**:
- `features/proptest` branch under Kani is likely not the final
location for this code. If this instruction stops working, please
location for this code. If these instructions stop working, please
consult the Kani documentation and file an issue on [the Kani
repo](https://github.com/model-checking/kani.git).
- The cargo config file will force cargo to always use PropProof. To
Expand Down

0 comments on commit 1dfee4b

Please sign in to comment.