Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI test for --use-local-toolchain #3074

Merged
merged 21 commits into from
Mar 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading