Sakib Sajal 43560d8e22 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>
2021-01-28 16:53:13 -08:00

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