| echo "usage: $0 [other_git_tree...] [--] [test_scripts]" |
| echo "=== Running $# tests in ${GIT_TEST_INSTALLED:-this tree} ===" |
| (cd "$(git rev-parse --show-cdup)" && git archive --format=tar $rev) | |
| cp ../../config.mak build/$rev/config.mak |
| (cd build/$rev && make $GIT_PERF_MAKE_OPTS) || |
| die "failed to build revision '$mydir'" |
| while test $# -gt 0 -a "$1" != -- -a ! -f "$1"; do |
| if test $# -gt 0 -a "$1" = --; then |
| if [ ! -d "$mydir" ]; then |
| rev=$(git rev-parse --verify "$mydir" 2>/dev/null) || |
| die "'$mydir' is neither a directory nor a valid revision" |
| if [ ! -d build/$rev ]; then |
| if test "$mydir" = .; then |
| GIT_TEST_INSTALLED="$mydir/bin-wrappers" |
| export GIT_TEST_INSTALLED |
| while test $# -gt 0 -a "$1" != -- -a ! -f "$1"; do |
| GIT_PERF_AGGREGATING_LATER=t |
| export GIT_PERF_AGGREGATING_LATER |
| . ../../GIT-BUILD-OPTIONS |
| if test $# = 0 -o "$1" = -- -o -f "$1"; then |