blob: bf1244b07cebee5cb91092ce7161ea5d419a7666 [file] [log] [blame]
Andrew Geissler6aa7eec2023-03-03 12:41:14 -06001#!/bin/sh
2
3cd $(dirname "$(readlink -f "$0")")
4
5# python3-gpiod uses gpio-sim - a configfs-based testing module. We need to
6# make sure configfs is mounted before running any tests.
7modprobe configfs
8mountpoint /sys/kernel/config > /dev/null || mount -t configfs configfs /sys/kernel/config
9
10python3 -m gpiod-test -v > ./python3-gpiod.out 2>&1
11if [ $? -ne 0 ]; then
12 echo "FAIL: python3-gpiod"
13else
14 echo "PASS: python3-gpiod"
15fi