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 export GIT_TEST_INSTALLED
72 while test $# -gt 0 -a "$1" != -- -a ! -f "$1"; do
78 GIT_PERF_AGGREGATING_LATER=t
79 export GIT_PERF_AGGREGATING_LATER
82 . ../../GIT-BUILD-OPTIONS
84 if test $# = 0 -o "$1" = -- -o -f "$1"; then