fedhub/async-git/run-tests.sh

11 lines
No EOL
307 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