PHP Classes

File: support/tools/speedtest

Recommend this page to a friend!
  Classes of Daniele Orlando   FluidXML   support/tools/speedtest   Download  
File: support/tools/speedtest
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: FluidXML
Manipulate XML documents using a fluent interface
Author: By
Last change: Fixes some leaked PHP notices.
Speedtest reverts the repository to the original branch if no errors occurs.
Speedtest has more tests.
Element insertion logic initial refactoring.
Date: 8 years ago
Size: 910 bytes
 

Contents

Class file image Download
#!/usr/bin/env sh cd "$(dirname "$0")" . "./.common.sh" cd ../.. clear if ! chkcmd 'git'; then echo ' error: "git" command not found.' exit 1 fi versions='ORIG_HEAD master' if test $# -gt 0; then versions="$@" fi test_dir="$(pwd)/sandbox/codevelox" repo_dir="$test_dir/checkout" test_php="$test_dir/speedtest.php" git_branch=$(git branch | grep "\*" | cut -d ' ' -f 2) ggit() { git --work-tree "$repo_dir" "$@" } mkdir -p "$repo_dir" mkdir -p "$test_dir" cp -f 'support/Codevelox.php' "$test_dir/" cp -f 'support/speedtest.php' "$test_dir/" for v in $versions; do ggit checkout -f $v mkdir -p "$test_dir/$v" cp -rf "$repo_dir/source/"* "$test_dir/$v/" done ggit checkout $git_branch cd "$test_dir" echo "\n Versions to test: $versions\n" for v in $versions; do echo " => Testing version $v"; php speedtest.php "$v" done