blob: 60c661fc10fae3d2bb684cc9c34172da3a705454 [file] [log] [blame]
Andrew Geisslerac970dd2021-02-12 15:32:45 -06001#!/bin/sh
2
Andrew Geissler69721092021-07-23 12:57:00 -04003testbins="gpiod-test gpio-tools-test gpiod-cxx-test gpiod_py_test.py"
4
Andrew Geisslerac970dd2021-02-12 15:32:45 -06005ptestdir=$(dirname "$(readlink -f "$0")")
6cd $ptestdir/tests
7
Andrew Geissler69721092021-07-23 12:57:00 -04008for testbin in $testbins; do
9 if test -e ./$testbin; then
10 ./$testbin > ./$testbin.out
11 if [ $? -ne 0 ]; then
12 echo "FAIL: $testbin"
13 else
14 echo "PASS: $testbin"
15 fi
16 else
17 echo "SKIP: $testbin"
18 fi
19done