-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a90818
commit c7f9044
Showing
4 changed files
with
38 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright Kani Contributors | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
script: playback_opts.sh | ||
expected: playback_opts.expected |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright Kani Contributors | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
//! This checks that Kani zero-size playback, 2 of them in a row. | ||
#[kani::proof] | ||
fn any_is_ok() { | ||
let unit: () = kani::any(); | ||
let unit2: () = kani::any(); | ||
kani::cover!(unit == ()); | ||
kani::cover!(unit2 == ()); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[TEST] Generate test... | ||
Checking harness any_is_ok | ||
|
||
[TEST] Run test... | ||
test result: ok. 1 passed; 0 failed; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
# Copyright Kani Contributors | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# Test that concrete playback -Z concrete-playback executes as expected | ||
set -o pipefail | ||
set -o nounset | ||
|
||
RS_FILE="modified.rs" | ||
cp original.rs ${RS_FILE} | ||
|
||
echo "[TEST] Generate test..." | ||
kani ${RS_FILE} -Z concrete-playback --concrete-playback=inplace | ||
|
||
echo "[TEST] Run test..." | ||
kani playback -Z concrete-playback ${RS_FILE} -- kani_concrete_playback | ||
|
||
# Cleanup | ||
rm ${RS_FILE} |