accel/qaic: Add AIC200 support
[drm/drm-misc.git] / tools / testing / selftests / hid / run-hid-tools-tests.sh
blobaf1682a53c27e10a30d3299ef6def672a27b0847
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # Runs tests for the HID subsystem
5 KSELFTEST_SKIP_TEST=4
7 if ! command -v python3 > /dev/null 2>&1; then
8 echo "hid-tools: [SKIP] python3 not installed"
9 exit $KSELFTEST_SKIP_TEST
12 if ! python3 -c "import pytest" > /dev/null 2>&1; then
13 echo "hid: [SKIP] pytest module not installed"
14 exit $KSELFTEST_SKIP_TEST
17 if ! python3 -c "import pytest_tap" > /dev/null 2>&1; then
18 echo "hid: [SKIP] pytest_tap module not installed"
19 exit $KSELFTEST_SKIP_TEST
22 if ! python3 -c "import hidtools" > /dev/null 2>&1; then
23 echo "hid: [SKIP] hid-tools module not installed"
24 exit $KSELFTEST_SKIP_TEST
27 TARGET=${TARGET:=.}
29 echo TAP version 13
30 python3 -u -m pytest $PYTEST_XDIST ./tests/$TARGET --tap-stream --udevd