Browse Source

scripts: add sqlite3 check for compare-commits.sh (#15633)

Aman Gupta 4 months ago
parent
commit
55042b3692
1 changed files with 6 additions and 0 deletions
  1. 6 0
      scripts/compare-commits.sh

+ 6 - 0
scripts/compare-commits.sh

@@ -25,6 +25,12 @@ fi
 # verify at the start that the compare script has all the necessary dependencies installed
 # verify at the start that the compare script has all the necessary dependencies installed
 ./scripts/compare-llama-bench.py --check
 ./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
 if [ "$tool" = "llama-bench" ]; then
     db_file="llama-bench.sqlite"
     db_file="llama-bench.sqlite"
     target="llama-bench"
     target="llama-bench"