3 SRCDIR
="$(dirname "$0")"
16 SRCDIR
="$(absolute "$SRCDIR")"
19 # Set env for the scripts and test scripts:
20 readonly DATADIR
="$SRCDIR"
21 if [[ "$PATH" ]]; then
22 readonly PATH
="$SRCDIR:$PATH"
24 readonly PATH
="$SRCDIR"
31 readonly TESTS
=("$SRCDIR"/tests
/*.sh
)
34 for t
in "${TESTS[@]}"; do
35 echo -n "################################### "
36 echo "Running $(basename "$t")..."
38 rm -rf "$TMP"/test-gitgitconfig
39 mkdir
"$TMP"/test-gitgitconfig
40 pushd "$TMP"/test-gitgitconfig
41 if "$t"; then echo OK
; else echo FAILED
; exit 1; fi
43 rm -rf "$TMP"/test-gitgitconfig