diff options
| author | Sakib Sajal <sakib.sajal@windriver.com> | 2021-01-28 11:51:29 -0500 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-01-28 16:53:13 -0800 |
| commit | 43560d8e225c0f77599a1141f2a1c0b60fbf1fa0 (patch) | |
| tree | 67cb6de1a3a25f05887568968c390ff27663a9f9 /meta-oe/recipes-support/libgpiod/files/run-ptest | |
| parent | ba4968cb68ed53d0b7f246d13557391b001bac95 (diff) | |
| download | meta-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-ptest | 12 |
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 | |||
| 3 | testbin="gpiod-test" | ||
| 4 | ptestdir=$(dirname "$(readlink -f "$0")") | ||
| 5 | cd $ptestdir/tests | ||
| 6 | |||
| 7 | ./$testbin | ||
| 8 | if [ $? -ne 0 ]; then | ||
| 9 | echo "FAIL: $testbin" | ||
| 10 | else | ||
| 11 | echo "PASS: $testbin" | ||
| 12 | fi | ||
