diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-gpiod/run-ptest')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-gpiod/run-ptest | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-gpiod/run-ptest b/meta-python/recipes-devtools/python/python3-gpiod/run-ptest new file mode 100644 index 0000000000..bf1244b07c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-gpiod/run-ptest | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | cd $(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. | ||
| 7 | modprobe configfs | ||
| 8 | mountpoint /sys/kernel/config > /dev/null || mount -t configfs configfs /sys/kernel/config | ||
| 9 | |||
| 10 | python3 -m gpiod-test -v > ./python3-gpiod.out 2>&1 | ||
| 11 | if [ $? -ne 0 ]; then | ||
| 12 | echo "FAIL: python3-gpiod" | ||
| 13 | else | ||
| 14 | echo "PASS: python3-gpiod" | ||
| 15 | fi | ||
