fedhub/async-git/run-tests.sh
2020-04-22 02:44:26 -05:00

11 lines
308 B
Bash
Executable file

#!/bin/bash
# get the directory where this script lives
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
export GIT_PATH=${GIT_PATH:-$DIR/../target/debug/git}
export TESTS_DIR=${TESTS_DIR:-$DIR/tests}
for script in $(ls $TESTS_DIR/test-*.sh);
do
(cd $TESTS_DIR; bash $script)
done