File: runtests

package info (click to toggle)
spline 1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164 kB
  • sloc: ansic: 355; makefile: 193; sh: 35
file content (20 lines) | stat: -rwxr-xr-x 197 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

RUN=0
FAIL=0

for i in test-*
do
  RUN=$(($RUN+1))
  if ! sh "$i"
  then
    FAIL=$(($FAIL+1))
  fi
done

echo "Ran $RUN tests; $FAIL tests failed."

if [ $FAIL -gt 0 ]
then
  exit 1
fi