Skip to content

Commit

Permalink
Check OS for kani
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Jul 31, 2024
1 parent ff7f6d2 commit 8935fad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/check_kani.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ KANI_DIR=$(mktemp -d)

RUNNER_TEMP=$(mktemp -d)

# Get the OS name
os_name=$(uname -s)

# Checkout your local repository
echo "Checking out local repository..."
echo
Expand All @@ -16,11 +19,18 @@ echo "Checking out Kani repository..."
echo
git clone --depth 1 -b features/verify-rust-std https://github.com/model-checking/kani.git "$KANI_DIR"

# Check the OS and
# Setup dependencies for Kani
echo "Setting up dependencies for Kani..."
echo
cd "$KANI_DIR"
./scripts/setup/ubuntu/install_deps.sh
if [ "$os_name" == "Linux" ]; then
./scripts/setup/ubuntu/install_deps.sh
elif [ "$os_name" == "Darwin" ]; then
./scripts/setup/macos/install_deps.sh
else
echo "Unknown operating system"
fi

# Build Kani
echo "Building Kani..."
Expand Down

0 comments on commit 8935fad

Please sign in to comment.