diff options
author | Josh Hoyt <josh@janrain.com> | 2006-01-28 00:09:22 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-01-28 00:09:22 +0000 |
commit | cb09e2edac2e181cfda4ef6ed3302b18ec7906b8 (patch) | |
tree | 88d5e117fd3b5c12ea835b7078a161c69a049801 /admin | |
parent | b8d7aa79456e1252ec26773d2b92f6be0cfac8b8 (diff) | |
download | php-openid-cb09e2edac2e181cfda4ef6ed3302b18ec7906b8.zip php-openid-cb09e2edac2e181cfda4ef6ed3302b18ec7906b8.tar.gz php-openid-cb09e2edac2e181cfda4ef6ed3302b18ec7906b8.tar.bz2 |
[project @ Added script to check that each file in the library will import]
Diffstat (limited to 'admin')
-rw-r--r-- | admin/checkimport | 5 | ||||
-rw-r--r-- | admin/checkimports | 2 | ||||
-rw-r--r-- | admin/fixperms | 3 | ||||
-rw-r--r-- | admin/runtests | 9 |
4 files changed, 16 insertions, 3 deletions
diff --git a/admin/checkimport b/admin/checkimport new file mode 100644 index 0000000..18a0e39 --- /dev/null +++ b/admin/checkimport @@ -0,0 +1,5 @@ +#!/usr/bin/env php +<?php +// -*- php -*- +require_once $argv[1]; +?>
\ No newline at end of file diff --git a/admin/checkimports b/admin/checkimports new file mode 100644 index 0000000..c4fa471 --- /dev/null +++ b/admin/checkimports @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +./admin/findphp | xargs -L 1 ./admin/checkimport
\ No newline at end of file diff --git a/admin/fixperms b/admin/fixperms index 50bb7ff..ab857e2 100644 --- a/admin/fixperms +++ b/admin/fixperms @@ -1,3 +1,4 @@ #!/usr/bin/env bash chmod +x admin/makedoc.sh admin/docblocks admin/runtests admin/mathlib \ - admin/fixperms admin/prepare-release
\ No newline at end of file + admin/fixperms admin/prepare-release admin/checkimport admin/checkimports \ + admin/findphp
\ No newline at end of file diff --git a/admin/runtests b/admin/runtests index 6bcd772..9026a90 100644 --- a/admin/runtests +++ b/admin/runtests @@ -2,6 +2,10 @@ HERE=$(readlink --canonicalize $(dirname "$0")) +test_import () { + ./admin/checkimports +} + test_tabs () { /usr/bin/env bash "$HERE/notabs" } @@ -30,14 +34,15 @@ test_php () { /usr/bin/env php "$HERE/texttest.php" } -tests="tabs longlines nobadbraces nobadcase opentag docblocks php" +tests="tabs longlines nobadbraces nobadcase opentag docblocks php import" failures= # Run in repository root (parent of this directory) cd $(dirname "$HERE") -chmod +x ./admin/findphp +chmod +x ./admin/fixperms +./admin/fixperms for test_name in $tests do |