Tweak test run script
This commit is contained in:
parent
35e7a67c6a
commit
c148966ebb
4
test/run
4
test/run
|
@ -5,14 +5,14 @@
|
||||||
main() {
|
main() {
|
||||||
number_tests=0
|
number_tests=0
|
||||||
number_failures=0
|
number_failures=0
|
||||||
dirs="$@"
|
dirs="${@:-.}"
|
||||||
test=$(pwd)
|
test=$(pwd)
|
||||||
work=$(mktemp -d /tmp/kak-tests.XXXXXXXX)
|
work=$(mktemp -d /tmp/kak-tests.XXXXXXXX)
|
||||||
cp -R . $work
|
cp -R . $work
|
||||||
trap "rm -R $work" EXIT
|
trap "rm -R $work" EXIT
|
||||||
for dir in $(find $dirs -type d); do
|
for dir in $(find $dirs -type d); do
|
||||||
cd $test/$dir;
|
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;
|
cd $work/$dir;
|
||||||
indent="$(echo "${dir}/" | sed "s|[^/]*/\+| |g")"
|
indent="$(echo "${dir}/" | sed "s|[^/]*/\+| |g")"
|
||||||
name=$(basename $PWD)
|
name=$(basename $PWD)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user