File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -342,6 +342,9 @@ include shared.mak
342342# If it isn't set, fallback to $LC_ALL, $LANG or use the first utf-8
343343# locale returned by "locale -a".
344344#
345+ # Define TEST_CONTRIB_TOO to make "make test" run tests in contrib/
346+ # directories.
347+ #
345348# Define HAVE_CLOCK_GETTIME if your platform has clock_gettime.
346349#
347350# Define HAVE_CLOCK_MONOTONIC if your platform has CLOCK_MONOTONIC.
@@ -3371,6 +3374,9 @@ export TEST_NO_MALLOC_CHECK
33713374
33723375test : all
33733376 $(MAKE ) -C t/ all
3377+ ifdef TEST_CONTRIB_TOO
3378+ $(MAKE) -C contrib/ test
3379+ endif
33743380
33753381perf : all
33763382 $(MAKE ) -C t/perf/ all
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ case "$jobname" in
99fedora-breaking-changes-musl|linux-breaking-changes)
1010 export WITH_BREAKING_CHANGES=YesPlease
1111 export WITH_RUST=YesPlease
12+ export TEST_CONTRIB_TOO=yes
1213 MESONFLAGS=" $MESONFLAGS -Dbreaking_changes=true"
1314 MESONFLAGS=" $MESONFLAGS -Drust=enabled"
1415 ;;
@@ -26,6 +27,7 @@ linux-TEST-vars)
2627 export GIT_TEST_NO_WRITE_REV_INDEX=1
2728 export GIT_TEST_CHECKOUT_WORKERS=2
2829 export GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL=1
30+ export TEST_CONTRIB_TOO=yes
2931 ;;
3032linux-clang)
3133 export GIT_TEST_DEFAULT_HASH=sha1
@@ -36,6 +38,7 @@ linux-sha256)
3638linux-reftable|linux-reftable-leaks|osx-reftable)
3739 export GIT_TEST_DEFAULT_REF_FORMAT=reftable
3840 ;;
41+
3942esac
4043
4144case " $jobname " in
Original file line number Diff line number Diff line change 1+ all ::
2+
3+ test ::
4+ $(MAKE ) -C diff-highlight $@
5+ $(MAKE ) -C subtree $@
6+
7+ clean ::
8+ $(MAKE ) -C contacts $@
9+ $(MAKE ) -C diff-highlight $@
10+ $(MAKE ) -C subtree $@
You can’t perform that action at this time.
0 commit comments