#!/bin/sh
set -e

# Basic smoke test: --help must succeed and identify the tool.
out=$(/usr/bin/mysqltuner --help 2>&1)
echo "$out" | grep -qi 'MySQLTuner' || {
    echo "FAIL: --help output does not mention MySQLTuner" >&2
    exit 1
}

echo "smoke test ok"
