summaryrefslogtreecommitdiff
path: root/test/api/run_tests.sh
blob: 19e8e178cd57e64babd9cd631e53fe3644633191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

echo Running api tests:

tests=0
passed=0

for file in `ls`; do
    [ ! -x $file -o -d $file ] && continue
    tests=`expr 1 + $tests`
    printf "  %s:\t" $file
    ./$file
    if [ $? ]; then
        passed=`expr 1 + $passed`
        echo 'SUCCESS'
    else
        echo 'FAILURE'
    fi
done

echo "$passed/$tests passed"

exit 0