#!/bin/sh

set -eux

for t in *; do
    if [ -f "$t" ] && [ -x "$t" ] && [ "$t" != "run-ptest" ]; then
        if "./$t" > "alsa-lib_$t.log" 2>&1; then
            echo "PASS: $t"
        else
            echo "FAIL: $t - Log"
            cat "alsa-lib_$t.log"
        fi
    else
        echo "SKIP: $t (Not executable or not a file)"
    fi
done

