[go: up one dir, main page]

File: runall

package info (click to toggle)
libmongo-client 0.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,384 kB
  • ctags: 770
  • sloc: ansic: 14,979; makefile: 322; perl: 137; sh: 48
file content (17 lines) | stat: -rwxr-xr-x 398 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
set -e

fail_counter=0

trap '[ $? -eq 0 ] && rm -f current-test.out current-test.err' 0

for test in $@; do
    ${test} 2>current-test.err >current-test.out
    if grep "not ok" current-test.out >/dev/null 2>/dev/null; then
            echo "${test} failed:" >&2
            cat current-test.err >&2
            fail_counter=`expr ${fail_counter} + 1`
    fi
done

exit ${fail_counter}