aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile.local
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-09-25 23:38:18 +0300
committerDavid Bremner <david@tethera.net>2017-10-20 19:52:24 -0300
commit0dd58ea7e7f2af3fea2ba747a49c1d8bb3cdeaad (patch)
treea7bfc77e5a615d5954819f5d446b2bd65dce0382 /test/Makefile.local
parent1c2152ce734f227b7aa7c5db9961b669177f2316 (diff)
build: use NOTMUCH_SRCDIR for referencing notmuch-test
Don't assume the tests are always run from within the source tree.
Diffstat (limited to 'test/Makefile.local')
-rw-r--r--test/Makefile.local6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Makefile.local b/test/Makefile.local
index 0df72c92..1a0ab813 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -62,13 +62,13 @@ test-binaries: $(TEST_BINARIES)
test: all test-binaries
ifeq ($V,)
@echo 'Use "$(MAKE) V=1" to see the details for passing and known broken tests.'
- @env NOTMUCH_TEST_QUIET=1 ${test_src_dir}/notmuch-test $(OPTIONS)
+ @env NOTMUCH_TEST_QUIET=1 $(NOTMUCH_SRCDIR)/$(test_src_dir)/notmuch-test $(OPTIONS)
else
# The user has explicitly enabled quiet execution.
ifeq ($V,0)
- @env NOTMUCH_TEST_QUIET=1 ${test_src_dir}/notmuch-test $(OPTIONS)
+ @env NOTMUCH_TEST_QUIET=1 $(NOTMUCH_SRCDIR)/$(test_src_dir)/notmuch-test $(OPTIONS)
else
- @${test_src_dir}/notmuch-test $(OPTIONS)
+ @$(NOTMUCH_SRCDIR)/$(test_src_dir)/notmuch-test $(OPTIONS)
endif
endif