File: gssapi-thread-test-wrapper

package info (click to toggle)
globus-gssapi-gsi 14.20-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,748 kB
  • sloc: ansic: 21,107; sh: 11,186; makefile: 353; perl: 149
file content (25 lines) | stat: -rwxr-xr-x 427 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
21
22
23
24
25
#! /bin/sh

rc=0
count=0
for x in ${THREAD_MODELS}""; do
    if [ -x "gssapi-thread-test-$x" ]; then
        count=$(($count + 1))
    fi
done

if [ "$count" -eq 0 ]; then
    exit 77
fi
echo "1..$count"

for x in ${THREAD_MODELS}""; do
    if [ -x "gssapi-thread-test-$x" ]; then
        ./gssapi-thread-test-${x}
        newrc=$?
        if [ "$newrc" != 0 ]; then
            rc=$(($rc + 1))
        fi
    fi
done
exit $rc