Tweak test run script

This commit is contained in:
Maxime Coste 2014-12-11 13:43:10 +00:00
parent 35e7a67c6a
commit c148966ebb

View File

@ -5,14 +5,14 @@
main() {
number_tests=0
number_failures=0
dirs="$@"
dirs="${@:-.}"
test=$(pwd)
work=$(mktemp -d /tmp/kak-tests.XXXXXXXX)
cp -R . $work
trap "rm -R $work" EXIT
for dir in $(find $dirs -type d); do
cd $test/$dir;
test_files=$(find * -name out -o -name selections -o -name state)
test_files=$(ls out selections state 2>/dev/null)
cd $work/$dir;
indent="$(echo "${dir}/" | sed "s|[^/]*/\+| |g")"
name=$(basename $PWD)