blob: 61b9b69fc60a7a17c7474f28f49e6060611f5523 [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
Andrew Geissler595f6302022-01-24 19:11:47 +000010 ./$testbin > ./$testbin.out 2>&1
Andrew Geissler69721092021-07-23 12:57:00 -040011 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