blob: 665515291afe5b4df75ec374aa3706bc380afdd9 (
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 " test(%s): " $file
./$file
if [ $? ]; then
passed=`expr 1 + $passed`
echo 'SUCCESS'
else
echo 'FAILURE'
fi
done
echo "$passed/$tests tests successful"
exit 0
|