Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
qinheping committed Jan 10, 2025
1 parent 9629796 commit cbab688
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/script-based-pre/cargo_manifest_test/add/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "add"
version = "0.1.0"
edition = "2021"

[dependencies]
4 changes: 4 additions & 0 deletions tests/script-based-pre/cargo_manifest_test/add/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#[kani::proof]
fn main() {
1 + 1;
}
4 changes: 4 additions & 0 deletions tests/script-based-pre/cargo_manifest_test/config.yml
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: manifest_test.sh
expected: manifest_test.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Complete - 1 successfully verified harnesses, 0 failures, 1 total.
8 changes: 8 additions & 0 deletions tests/script-based-pre/cargo_manifest_test/manifest_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Copyright Kani Contributors
# SPDX-License-Identifier: Apache-2.0 OR MIT

# Test if Kani can correctly check if package in the workspace when
# manifest-path presents.

cargo kani --manifest-path=add/Cargo.toml --package add --debug

0 comments on commit cbab688

Please sign in to comment.