forked from tokio-rs/prost
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added kani integration. * Fix yaml problem. * yaml hash problem * No need to cd? * Use new release, not the hash * Added comment describing the unwind value. Co-authored-by: Yoshiki Takashima <[email protected]>
- Loading branch information
1 parent
14ac71e
commit e73facc
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,27 @@ jobs: | |
command: test | ||
args: --no-default-features | ||
|
||
kani: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Verify with Kani | ||
uses: model-checking/[email protected] | ||
with: | ||
enable-propproof: true | ||
args: | | ||
--tests -p prost-types --default-unwind 3 \ | ||
--harness "tests::check_timestamp_roundtrip_via_system_time" | ||
# --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 | ||
# correct. However, Kani will require more time and memory. If | ||
# Kani fails with "Failed Checks: unwinding assertion," this | ||
# number may need to be raised for Kani to succeed. | ||
|
||
no-std: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|