#!/usr/bin/env bash # Copyright Kani Contributors # SPDX-License-Identifier: Apache-2.0 OR MIT if [[ -z $KANI_REGRESSION_KEEP_GOING ]]; then set -o errexit fi set -o pipefail set -o nounset SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" export PATH=$SCRIPT_DIR:$PATH EXTRA_X_PY_BUILD_ARGS="${EXTRA_X_PY_BUILD_ARGS:-}" KANI_DIR=$SCRIPT_DIR/.. # This variable forces an error when there is a mismatch on the expected # descriptions from cbmc checks. # TODO: We should add a more robust mechanism to detect python unexpected behavior. export KANI_FAIL_ON_UNEXPECTED_DESCRIPTION="true" # Build all packages in the workspace cargo build # Run slow compiletests cargo run -p compiletest --quiet -- --suite slow --mode cargo-kani echo echo "Kani slow tests completed successfully." echo