git-secret/utils/tests.sh

10 lines
294 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# `SECRET_PROJECT_ROOT` must be set before running the script.
set -e
2018-06-30 20:33:07 +00:00
# Running all the bats-tests in a dir with spaces:
cd "${SECRET_PROJECT_ROOT}"; rm -rf 'tempdir with spaces'; mkdir 'tempdir with spaces'; cd 'tempdir with spaces';
bats "${SECRET_PROJECT_ROOT}/tests"