summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-gpiod
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-02-16 09:49:37 +0100
committerKhem Raj <raj.khem@gmail.com>2023-02-18 13:19:36 -0800
commit941b3bc262dd439eaf4bd6e0f2c7df8ed14c56cf (patch)
tree3654376f9b37ba5b0e1c08e07a330db07890583e /meta-python/recipes-devtools/python/python3-gpiod
parentcd26db61af27a9f822492b1d67b0e39e6828e7cb (diff)
downloadmeta-openembedded-941b3bc262dd439eaf4bd6e0f2c7df8ed14c56cf.tar.gz
python3-gpiod: new package
Add a recipe for libgpiod v2 python bindings. This is a release candidate but once the proper v2.0 is released, it will be made public on pypi and the recipe modified accordingly. As libgpiod python bindings now use setuptools and not make, we can separate the recipe from the rest of the library. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-gpiod')
-rw-r--r--meta-python/recipes-devtools/python/python3-gpiod/run-ptest15
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
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