diff --git a/.ci/test-sound.sh b/.ci/test-sound.sh new file mode 100755 index 00000000..d89ab7e5 --- /dev/null +++ b/.ci/test-sound.sh @@ -0,0 +1,54 @@ +#!/usr/bin/env bash + +set -euo pipefail + +# Source common functions and settings +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +export SCRIPT_DIR +source "${SCRIPT_DIR}/common.sh" + +SAMPLE_SOUND="/usr/share/sounds/alsa/Front_Center.wav" + +# Override timeout for sound tests +# Sound tests need different timeout: 30s for Linux, 900s for macOS +case "${OS_TYPE}" in + Darwin) + TIMEOUT=900 + ;; + Linux) + TIMEOUT=30 + ;; + *) + TIMEOUT=30 + ;; +esac + +# Clean up any existing semu processes before starting tests +cleanup + +# Test sound device +expect <