brintos

brintos / linux-shallow public Read only

0
0
Text · 663 B · bdae846 Raw
29 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03# Runs tests for the HID subsystem4 5if ! command -v python3 > /dev/null 2>&1; then6	echo "hid-tools: [SKIP] python3 not installed"7	exit 778fi9 10if ! python3 -c "import pytest" > /dev/null 2>&1; then11	echo "hid: [SKIP/ pytest module not installed"12	exit 7713fi14 15if ! python3 -c "import pytest_tap" > /dev/null 2>&1; then16	echo "hid: [SKIP/ pytest_tap module not installed"17	exit 7718fi19 20if ! python3 -c "import hidtools" > /dev/null 2>&1; then21	echo "hid: [SKIP/ hid-tools module not installed"22	exit 7723fi24 25TARGET=${TARGET:=.}26 27echo TAP version 1328python3 -u -m pytest $PYTEST_XDIST ./tests/$TARGET --tap-stream --udevd29