File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,15 @@ appropriately before running "make".
170
170
implied by other options like --valgrind and
171
171
GIT_TEST_INSTALLED.
172
172
173
+ --no-bin-wrappers::
174
+ By default, the test suite uses the wrappers in
175
+ `../bin-wrappers/` to execute `git` and friends. With this option,
176
+ `../git` and friends are run directly. This is not recommended
177
+ in general, as the wrappers contain safeguards to ensure that no
178
+ files from an installed Git are used, but can speed up test runs
179
+ especially on platforms where running shell scripts is expensive
180
+ (most notably, Windows).
181
+
173
182
--root=<directory>::
174
183
Create "trash" directories used to store all temporary data during
175
184
testing under <directory>, instead of the t/ directory.
Original file line number Diff line number Diff line change 294
294
test -z " $HARNESS_ACTIVE " && quiet=t; shift ;;
295
295
--with-dashes)
296
296
with_dashes=t; shift ;;
297
+ --no-bin-wrappers)
298
+ no_bin_wrappers=t; shift ;;
297
299
--no-color)
298
300
color=; shift ;;
299
301
--va|--val|--valg|--valgr|--valgri|--valgrin|--valgrind)
@@ -1081,16 +1083,21 @@ then
1081
1083
PATH=$GIT_TEST_INSTALLED :$GIT_BUILD_DIR /t/helper:$PATH
1082
1084
GIT_EXEC_PATH=${GIT_TEST_EXEC_PATH:- $GIT_EXEC_PATH }
1083
1085
else # normal case, use ../bin-wrappers only unless $with_dashes:
1084
- git_bin_dir=" $GIT_BUILD_DIR /bin-wrappers"
1085
- if ! test -x " $git_bin_dir /git"
1086
+ if test -n " $no_bin_wrappers "
1086
1087
then
1087
- if test -z " $with_dashes "
1088
+ with_dashes=t
1089
+ else
1090
+ git_bin_dir=" $GIT_BUILD_DIR /bin-wrappers"
1091
+ if ! test -x " $git_bin_dir /git"
1088
1092
then
1089
- say " $git_bin_dir /git is not executable; using GIT_EXEC_PATH"
1093
+ if test -z " $with_dashes "
1094
+ then
1095
+ say " $git_bin_dir /git is not executable; using GIT_EXEC_PATH"
1096
+ fi
1097
+ with_dashes=t
1090
1098
fi
1091
- with_dashes=t
1099
+ PATH= " $git_bin_dir : $PATH "
1092
1100
fi
1093
- PATH=" $git_bin_dir :$PATH "
1094
1101
GIT_EXEC_PATH=$GIT_BUILD_DIR
1095
1102
if test -n " $with_dashes "
1096
1103
then
You can’t perform that action at this time.
0 commit comments