Skip to content
Open
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions benchmark-runner/scripts/run-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,20 @@ validate_config() {
log " Measurement window: $((total_secs - warmup_secs))s"
}

check_curl() {
# Check if curl is present
if ! command -v curl &> /dev/null; then
echo "curl not found, installing..."

# Added DEBIAN_FRONTEND=noninteractive to prevent it from hanging on prompts
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get install -y curl
fi

# Verify and log the version (using head to just get the first line)
echo "curl version: $(curl --version | head -n 1)"
}

check_jbang() {
if ! command -v jbang &> /dev/null; then
log "jbang not found, installing..."
Expand Down Expand Up @@ -614,6 +628,9 @@ EOF
# Create output directory
mkdir -p "$OUTPUT_DIR"

# Check curl
check_curl

# Check jbang
check_jbang

Expand Down