File: bash-tap-bootstrap

package info (click to toggle)
freebayes 1.3.9-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,980 kB
  • sloc: cpp: 125,778; ansic: 4,581; sh: 1,084; python: 672; asm: 271; javascript: 94; lisp: 85; makefile: 37; perl: 27
file content (28 lines) | stat: -rwxr-xr-x 865 bytes parent folder | download | duplicates (14)
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
27
28
#!/bin/bash
#
#  Bash TAP Bootstrap:
#    Copy this file into your project tests dir and source it
#    from each test file with:
#      . $(dirname $0)/bash-tap-bootstrap
#    It takes care of finding bash-tap or outputing a usage message.
#

bash_tap_bootstrap_version='1.0.2'

if [ "${BASH_SOURCE[0]}" = "$0" ]; then
    # Being run directly, probably by test harness running entire dir.
    echo "1..0 # SKIP bash-tap-bootstrap isn't a test file"
    exit 0
fi

if [ -z "$BASH_TAP_ROOT" ]; then
    #  TODO: search likely locations.
    BASH_TAP_ROOT="$(dirname ${BASH_SOURCE[0]})/../../bash-tap"
fi

if [ -f "$BASH_TAP_ROOT/bash-tap" ]; then
    . "$BASH_TAP_ROOT/bash-tap"
else
    echo "Bail out!  Unable to find bash-tap.  Install from https://github.com/illusori/bash-tap or set \$BASH_TAP_ROOT if you have it installed somewhere unusual."
    exit 255
fi