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} ==="
28 (cd "$(git rev-parse --show-cdup)" && git archive --format=tar $rev) |
29 (cd build/$rev && tar x)
33 for config in config.mak config.mak.autogen config.status
35 if test -e "../../$config"
37 cp "../../$config" "build/$rev/"
40 (cd build/$rev && make $GIT_PERF_MAKE_OPTS) ||
41 die "failed to build revision '$mydir'"
47 while test $# -gt 0 -a "$1" != -- -a ! -f "$1"; do
50 if test $# -gt 0 -a "$1" = --; then
53 if [ ! -d "$mydir" ]; then
54 rev=$(git rev-parse --verify "$mydir" 2>/dev/null) ||
55 die "'$mydir' is neither a directory nor a valid revision"
56 if [ ! -d build/$rev ]; then
62 if test "$mydir" = .; then
63 unset GIT_TEST_INSTALLED
65 GIT_TEST_INSTALLED="$mydir/bin-wrappers"
66 # Older versions of git lacked bin-wrappers; fallback to the
68 test -d "$GIT_TEST_INSTALLED" || GIT_TEST_INSTALLED=$mydir
69 export GIT_TEST_INSTALLED
75 while test $# -gt 0 -a "$1" != -- -a ! -f "$1"; do
81 GIT_PERF_AGGREGATING_LATER=t
82 export GIT_PERF_AGGREGATING_LATER
85 . ../../GIT-BUILD-OPTIONS
87 if test $# = 0 -o "$1" = -- -o -f "$1"; then