26 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03# Runs tests for the intel_sdsi driver4 5if ! command -v python3 > /dev/null 2>&1; then6 echo "drivers/sdsi: [SKIP] python3 not installed"7 exit 778fi9 10if ! python3 -c "import pytest" > /dev/null 2>&1; then11 echo "drivers/sdsi: [SKIP] pytest module not installed"12 exit 7713fi14 15if ! /sbin/modprobe -q -r intel_sdsi; then16 echo "drivers/sdsi: [SKIP]"17 exit 7718fi19 20if /sbin/modprobe -q intel_sdsi && python3 -m pytest sdsi_test.py; then21 echo "drivers/sdsi: [OK]"22else23 echo "drivers/sdsi: [FAIL]"24 exit 125fi26