#!/usr/bin/bash
#
# Run the installed mdadm test suite.
# Arguments are passed to the test runner, see "mdadm-testsuite --help".
#
# Test cases are looked up relative to the test suite directory, so the
# runner is started from there.

cd /usr/share/mdadm-testsuite || exit 1
export dir=${dir:-/usr/bin}
exec ./test "$@"
