1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 3 # Runs tests for the intel_sdsi driver 4 5 if ! command -v python3 > /dev/null 2>&1; then 6 echo "drivers/sdsi: [SKIP] python3 not installed" 7 exit 77 8 fi 9 10 if ! python3 -c "import pytest" > /dev/null 2>&1; then 11 echo "drivers/sdsi: [SKIP] pytest module not installed" 12 exit 77 13 fi 14 15 if ! /sbin/modprobe -q -r intel_sdsi; then 16 echo "drivers/sdsi: [SKIP]" 17 exit 77 18 fi 19 20 if /sbin/modprobe -q intel_sdsi && python3 -m pytest sdsi_test.py; then 21 echo "drivers/sdsi: [OK]" 22 else 23 echo "drivers/sdsi: [FAIL]" 24 exit 1 25 fi
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.