diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-03-02 16:44:42 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-03-02 17:45:37 -0800 |
| commit | dfcbbdfc486179f6ed0d4ea9b777236b20f7fc45 (patch) | |
| tree | 34859357c451d927927879d702ce8cd3c986f52f /meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc3/run-ptest | |
| parent | dd5b211eaea39806cfef9bee0d5f5b074bc61cf5 (diff) | |
| download | meta-openembedded-dfcbbdfc486179f6ed0d4ea9b777236b20f7fc45.tar.gz | |
libgpiod: update to v2.0
The final v2.0 release is out so update the recipe.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc3/run-ptest')
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc3/run-ptest | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc3/run-ptest b/meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc3/run-ptest deleted file mode 100644 index 9475f02535..0000000000 --- a/meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc3/run-ptest +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | testbins="gpiod-test gpio-tools-test gpiod-cxx-test" | ||
| 4 | |||
| 5 | ptestdir=$(dirname "$(readlink -f "$0")") | ||
| 6 | cd $ptestdir/tests | ||
| 7 | |||
| 8 | # libgpiod v2 uses gpio-sim - a configfs-based testing module. We need to | ||
| 9 | # make sure configfs is mounted before running any tests. | ||
| 10 | modprobe configfs | ||
| 11 | mountpoint /sys/kernel/config > /dev/null || mount -t configfs configfs /sys/kernel/config | ||
| 12 | |||
| 13 | for testbin in $testbins; do | ||
| 14 | if test -e ./$testbin; then | ||
| 15 | ./$testbin > ./$testbin.out 2>&1 | ||
| 16 | if [ $? -ne 0 ]; then | ||
| 17 | echo "FAIL: $testbin" | ||
| 18 | else | ||
| 19 | echo "PASS: $testbin" | ||
| 20 | fi | ||
| 21 | else | ||
| 22 | echo "SKIP: $testbin" | ||
| 23 | fi | ||
| 24 | done | ||
