From: Aman Gupta Date: Thu, 28 Aug 2025 11:23:22 +0000 (+0800) Subject: scripts: add sqlite3 check for compare-commits.sh (#15633) X-Git-Tag: upstream/0.0.6527~219 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=55042b3692cb1467c9ee15c62c4a9fbf180f89e3;p=pkg%2Fggml%2Fsources%2Fllama.cpp scripts: add sqlite3 check for compare-commits.sh (#15633) --- diff --git a/scripts/compare-commits.sh b/scripts/compare-commits.sh index a28cd5e5..1802d6e5 100755 --- a/scripts/compare-commits.sh +++ b/scripts/compare-commits.sh @@ -25,6 +25,12 @@ fi # verify at the start that the compare script has all the necessary dependencies installed ./scripts/compare-llama-bench.py --check +if ! command -v sqlite3 >/dev/null 2>&1; then + echo "Error: sqlite3 is not installed or not in PATH" + echo "Please install sqlite3 to use this script" + exit 1 +fi + if [ "$tool" = "llama-bench" ]; then db_file="llama-bench.sqlite" target="llama-bench"