mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 01:53:03 +00:00
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>
13 lines
181 B
Bash
13 lines
181 B
Bash
#!/bin/sh
|
|
|
|
testbin="gpiod-test"
|
|
ptestdir=$(dirname "$(readlink -f "$0")")
|
|
cd $ptestdir/tests
|
|
|
|
./$testbin
|
|
if [ $? -ne 0 ]; then
|
|
echo "FAIL: $testbin"
|
|
else
|
|
echo "PASS: $testbin"
|
|
fi
|