specs/test_cli.sh

16 lines
240 B
Bash
Executable File

#! /bin/bash
# Test me with: ./test_cli.sh PATH/TO/PROGRAM
SCRIPTDIR="$(dirname "$0")"
ORIGDIR="$(pwd)"
cd "$SCRIPTDIR"
export FORGEHOOK="$(pwd)/tests/mock-forgehook.sh"
export WHCK="$ORIGDIR"/"$1"
bats tests/cli/*.bats
cd "$ORIGDIR"