summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libgpiod/files/run-ptest
diff options
context:
space:
mode:
authorSakib Sajal <sakib.sajal@windriver.com>2021-01-28 11:51:29 -0500
committerKhem Raj <raj.khem@gmail.com>2021-01-28 16:53:13 -0800
commit43560d8e225c0f77599a1141f2a1c0b60fbf1fa0 (patch)
tree67cb6de1a3a25f05887568968c390ff27663a9f9 /meta-oe/recipes-support/libgpiod/files/run-ptest
parentba4968cb68ed53d0b7f246d13557391b001bac95 (diff)
downloadmeta-openembedded-43560d8e225c0f77599a1141f2a1c0b60fbf1fa0.tar.gz
libgpiod: add ptest
Added ptest for libgpiod. Requires CONFIG_GPIO_MOCKUP kernel config to be enabled. Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libgpiod/files/run-ptest')
-rw-r--r--meta-oe/recipes-support/libgpiod/files/run-ptest12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libgpiod/files/run-ptest b/meta-oe/recipes-support/libgpiod/files/run-ptest
new file mode 100644
index 0000000000..4cda05d446
--- /dev/null
+++ b/meta-oe/recipes-support/libgpiod/files/run-ptest
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3testbin="gpiod-test"
4ptestdir=$(dirname "$(readlink -f "$0")")
5cd $ptestdir/tests
6
7./$testbin
8if [ $? -ne 0 ]; then
9 echo "FAIL: $testbin"
10else
11 echo "PASS: $testbin"
12fi