5 echo "usage: $0 [other_git_tree...] [--] [test_scripts]"
16 if test $# -eq 0; then
19 echo "=== Running $# tests in ${GIT_TEST_INSTALLED:-this tree} ==="
27 echo "=== Unpacking $rev in build/$rev ==="
29 (cd "$(git rev-parse --show-cdup)" && git archive --format=tar $rev) |
30 (cd build/$rev && tar x)
34 for config in config.mak config.mak.autogen config.status
36 if test -e "../../$config"
38 cp "../../$config" "build/$rev/"
41 echo "=== Building $rev ==="
44 if test -n "$GIT_PERF_MAKE_COMMAND"
46 sh -c "$GIT_PERF_MAKE_COMMAND"
48 make $GIT_PERF_MAKE_OPTS
50 ) || die "failed to build revision '$mydir'"
56 while test $# -gt 0 -a "$1" != -- -a ! -f "$1"; do
59 if test $# -gt 0 -a "$1" = --; then
62 if [ ! -d "$mydir" ]; then
63 rev=$(git rev-parse --verify "$mydir" 2>/dev/null) ||
64 die "'$mydir' is neither a directory nor a valid revision"
65 if [ ! -d build/$rev ]; then
71 if test "$mydir" = .; then
72 unset GIT_TEST_INSTALLED
74 GIT_TEST_INSTALLED="$mydir/bin-wrappers"
75 # Older versions of git lacked bin-wrappers; fallback to the
77 test -d "$GIT_TEST_INSTALLED" || GIT_TEST_INSTALLED=$mydir
78 export GIT_TEST_INSTALLED
84 while test $# -gt 0 -a "$1" != -- -a ! -f "$1"; do
90 GIT_PERF_AGGREGATING_LATER=t
91 export GIT_PERF_AGGREGATING_LATER
94 . ../../GIT-BUILD-OPTIONS
96 if test $# = 0 -o "$1" = -- -o -f "$1"; then
100 ./aggregate.perl "$@"