Skip to content

Commit

Permalink
Add --help, --version and standalone simple checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Mar 19, 2024
1 parent 5e216e6 commit 97ba4ce
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/check-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,33 @@ jobs:
cargo kani setup --use-local-toolchain ${{ github.workspace }}/custom_toolchain/
- name: Ensure that the rustup toolchain is not present
run: ls -la ~/.rustup/toolchains/
run: |
ls -la ~/.rustup/toolchains/
if [ ! -f "~/.rustup/toolchains/" ]; then
echo "Default toolchain file does not exist. Proceeding with running tests."
else
echo "::error::Default toolchain exists despite not installing."
exit 1
fi
- name: Run tests
- name: Run cargo-kani tests
run: |
ls ./tests/cargo-ui/
for dir in function multiple-harnesses verbose; do
>&2 echo "Running test $dir"
pushd ./tests/cargo-ui/$dir
cargo kani
popd
done
- name: Check --help and --version
run: |
cargo kani --help && cargo kani --version
- name: Run standalone kani test
run: |
for dir in Assert; do
>&2 echo "Running test on file $dir"
pushd ./tests/cargo-ui/$dir
kani bool_ref.rs
popd
done

0 comments on commit 97ba4ce

Please sign in to comment.