mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
17515512: JanRain php-openid library included, normalization fix
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5137 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f541dd59b9
commit
658c0e6dbc
219 changed files with 41415 additions and 10 deletions
64
modules/member/php-openid-1.2.3/admin/runtests
Normal file
64
modules/member/php-openid-1.2.3/admin/runtests
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
HERE=$(readlink --canonicalize $(dirname "$0"))
|
||||
|
||||
test_import () {
|
||||
./admin/checkimports
|
||||
}
|
||||
|
||||
test_tabs () {
|
||||
/usr/bin/env bash "$HERE/notabs"
|
||||
}
|
||||
|
||||
test_longlines () {
|
||||
/usr/bin/env bash "$HERE/nolonglines"
|
||||
}
|
||||
|
||||
test_nobadbraces () {
|
||||
/usr/bin/env bash "$HERE/nobadbraces"
|
||||
}
|
||||
|
||||
test_nobadcase () {
|
||||
/usr/bin/env bash "$HERE/nobadcase"
|
||||
}
|
||||
|
||||
test_opentag () {
|
||||
/usr/bin/env bash "$HERE/open_tag"
|
||||
}
|
||||
|
||||
test_docblocks () {
|
||||
/usr/bin/env bash "$HERE/docblocks"
|
||||
}
|
||||
|
||||
test_php () {
|
||||
if uname -a | grep -i cygwin >/dev/null 2>/dev/null ; then
|
||||
/usr/bin/env php "$(dirname "$0")/texttest.php" --insecure-rand
|
||||
else
|
||||
/usr/bin/env php "$HERE/texttest.php"
|
||||
fi
|
||||
}
|
||||
|
||||
tests="tabs longlines nobadbraces nobadcase opentag docblocks php import"
|
||||
|
||||
failures=
|
||||
|
||||
# Run in repository root (parent of this directory)
|
||||
cd $(dirname "$HERE")
|
||||
|
||||
chmod +x ./admin/fixperms
|
||||
./admin/fixperms
|
||||
|
||||
for test_name in $tests
|
||||
do
|
||||
echo "Running test $test_name" 1>&2
|
||||
if ! eval "test_$test_name"
|
||||
then
|
||||
failures="$failures $test_name"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -z "$failures" ]
|
||||
then
|
||||
echo "Failures in: $failures" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue