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 | |
parent | ba2e7e5f507dd75795fe5bdaf8cc1e1afd33446f (diff) |
Minor changes to allow the use to tests and extension `.phpt-`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/phpt/.gitignore | 7 | ||||
-rw-r--r-- | tests/php/phpt/valueiterator/006.phpt (renamed from tests/php/phpt/valueiterator/006.phpt-) | 0 | ||||
-rwxr-xr-x | tests/test.sh | 14 |
3 files changed, 19 insertions, 2 deletions
diff --git a/tests/php/phpt/.gitignore b/tests/php/phpt/.gitignore index e89581c..b583a44 100644 --- a/tests/php/phpt/.gitignore +++ b/tests/php/phpt/.gitignore @@ -5,3 +5,10 @@ *.php *.sh *.mem +*.phpt-diff +*.phpt-exp +*.phpt-log +*.phpt-out +*.phpt-php +*.phpt-sh +*.phpt-mem diff --git a/tests/php/phpt/valueiterator/006.phpt- b/tests/php/phpt/valueiterator/006.phpt index ea97c2b..ea97c2b 100644 --- a/tests/php/phpt/valueiterator/006.phpt- +++ b/tests/php/phpt/valueiterator/006.phpt 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 |