diff options
author | valmat <ufabiz@gmail.com> | 2014-03-27 02:35:25 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-03-27 02:35:25 +0600 |
commit | 0c33b75e4adf790066091f402d70272a80d0ce59 (patch) | |
tree | b71ea107aa058a6585fc2e83a4319075638c0698 /tests/test.sh | |
parent | ba2e7e5f507dd75795fe5bdaf8cc1e1afd33446f (diff) |
Minor changes to allow the use to tests and extension `.phpt-`
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-x | tests/test.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/test.sh b/tests/test.sh index a77d670..8f5baa5 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -78,12 +78,22 @@ do # if quiet, only delete if [ $(echo $SCR_OPT | grep -o "\-q") ]; then - find ./php/phpt -type f \( -name '*.diff' -or -name '*.exp' -or -name '*.log' -or -name '*.out' -or -name '*.php' -or -name '*.sh' -or -name '*.mem' \) -delete + find ./php/phpt -type f \( \ + -name '*.diff' -or -name '*.exp' -or -name '*.log' -or -name '*.out' \ + -or -name '*.php' -or -name '*.sh' -or -name '*.mem' -or \ + -name '*.phpt-diff' -or -name '*.phpt-exp' -or -name '*.phpt-log' -or -name '*.phpt-out' \ + -or -name '*.phpt-php' -or -name '*.phpt-sh' -or -name '*.phpt-mem' \ + \) -delete # else delete and print else echo -e "\x1b[1;31;47mRemove auxiliary files...\x1b[0;0m" - for AUXF in `find ./php/phpt -type f \( -name '*.diff' -or -name '*.exp' -or -name '*.log' -or -name '*.out' -or -name '*.php' -or -name '*.sh' -or -name '*.mem' \)`; + for AUXF in `find ./php/phpt -type f \( \ + -name '*.diff' -or -name '*.exp' -or -name '*.log' -or -name '*.out' \ + -or -name '*.php' -or -name '*.sh' -or -name '*.mem' -or \ + -name '*.phpt-diff' -or -name '*.phpt-exp' -or -name '*.phpt-log' -or -name '*.phpt-out' \ + -or -name '*.phpt-php' -or -name '*.phpt-sh' -or -name '*.phpt-mem' \ + \)`; do echo -e "\x1b[1;31;47mdel \x1b[0;30;47m$(dirname $AUXF)/\x1b[1;31;47m$(basename $AUXF)\x1b[0;30;47m ...\x1b[0;0m" rm $AUXF |