diff options
author | tailor <dag@janrain.com> | 2008-05-27 23:04:02 +0000 |
---|---|---|
committer | tailor <dag@janrain.com> | 2008-05-27 23:04:02 +0000 |
commit | 55332a95e2b02316dc2fc1cae2149afeabf3fc8e (patch) | |
tree | 5b5407feee4a3c4b54932bdd6f55fe1def58ccc3 /admin | |
parent | 3d06cebc1a0fd817db7f2981ef3069bd9f444683 (diff) | |
download | php-openid-55332a95e2b02316dc2fc1cae2149afeabf3fc8e.zip php-openid-55332a95e2b02316dc2fc1cae2149afeabf3fc8e.tar.gz php-openid-55332a95e2b02316dc2fc1cae2149afeabf3fc8e.tar.bz2 |
[project @ Run a syntax check as part of runtests]
Diffstat (limited to 'admin')
-rw-r--r-- | admin/findallphp | 8 | ||||
-rw-r--r-- | admin/fixperms | 2 | ||||
-rw-r--r-- | admin/runtests | 6 | ||||
-rw-r--r-- | admin/syntaxcheck | 5 |
4 files changed, 20 insertions, 1 deletions
diff --git a/admin/findallphp b/admin/findallphp new file mode 100644 index 0000000..59a7306 --- /dev/null +++ b/admin/findallphp @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +find Auth Tests \ + -name _darcs -prune -o \ + \( -type f \ + -a -name \*.php \ + -a ! -name .\* \ + \) diff --git a/admin/fixperms b/admin/fixperms index 2b710d1..0ea0944 100644 --- a/admin/fixperms +++ b/admin/fixperms @@ -10,4 +10,6 @@ admin/makedoc.sh admin/mathlib admin/prepare-release admin/runtests +admin/findallphp +admin/syntaxcheck EOF diff --git a/admin/runtests b/admin/runtests index 6629235..920a873 100644 --- a/admin/runtests +++ b/admin/runtests @@ -8,6 +8,10 @@ test_import () { ./admin/checkimports } +test_syntax () { + ./admin/syntaxcheck +} + test_tabs () { /usr/bin/env bash "$HERE/notabs" } @@ -40,7 +44,7 @@ test_php () { fi } -tests="tabs longlines nobadbraces nobadcase opentag docblocks php import" +tests="syntax tabs longlines nobadbraces nobadcase opentag docblocks php import" failures= diff --git a/admin/syntaxcheck b/admin/syntaxcheck new file mode 100644 index 0000000..f94b7fa --- /dev/null +++ b/admin/syntaxcheck @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +for file in `./admin/findallphp` + do php -l $file +done |