• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3ME_="${0##*/}"
4
5LOG="$ME_.tmp"
6rm -f "$LOG"
7
8warn_() { printf >&2 '%s\n' "$*"; }
9fail_() { warn_ "$ME_: failed test: $*"; exit 1; }
10skip_() { warn_ "$ME_: skipped test: $*"; exit 77; }
11framework_failure_() { warn_ "$ME_: framework failure: $*"; exit 99; }
12framework_skip_() { warn_ "$ME_: framework skip: $*"; exit 77; }
13
14check_prog()
15{
16	type "$@" > /dev/null 2>&1 ||
17		framework_skip_ "$* is not available"
18}
19
20: "${STRACE:=../strace}"
21: "${TIMEOUT_DURATION:=60}"
22: "${SLEEP_A_BIT:=sleep 1}"
23