File: gssapi-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 (26 lines) | stat: -rwxr-xr-x 576 bytes parent folder | download | duplicates (4)
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
26
#! /bin/sh

PATH="${PATH}:$(dirname $0):."

# Perl scripts pass through, otherwise run the program under valgrind
# conditionally
if [ "${1##*.}" != "pl" ]; then
    if [ -n "${VALGRIND}" ]; then
        valgrind="${VALGRIND+valgrind --log-file=VALGRIND-$(basename $1).log}"
        if [ -n "$VALGRIND_OPTIONS" ]; then
            valgrind="${valgrind} ${VALGRIND_OPTIONS}"
        fi
        if [ -n "$LIBTOOL" ]; then
            valgrind="${LIBTOOL} --mode=execute $valgrind"
        fi
        $valgrind "$@"
    else
        "$@"
    fi
else
    "$@"
fi

rc=$?

exit $rc