Skip to content

Commit d41c37f

Browse files
committed
Merge branch 'jc/ci-test-contrib-too' into HEAD
* jc/ci-test-contrib-too: test: optionally test contrib in CI
2 parents 8d8fc8a + dc509c3 commit d41c37f

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

33723375
test: all
33733376
$(MAKE) -C t/ all
3377+
ifdef TEST_CONTRIB_TOO
3378+
$(MAKE) -C contrib/ test
3379+
endif
33743380

33753381
perf: all
33763382
$(MAKE) -C t/perf/ all

ci/run-build-and-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
. ${0%/*}/lib.sh
77

8+
export TEST_CONTRIB_TOO=yes
9+
810
case "$jobname" in
911
fedora-breaking-changes-musl|linux-breaking-changes)
1012
export WITH_BREAKING_CHANGES=YesPlease

contrib/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 $@

0 commit comments

Comments
 (0)