summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-11-29 10:16:30 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2016-11-29 11:13:33 +0000
commit3e659884a2f6079bd72929181e7bddf7d2b5da1d (patch)
treedff215cdf78db41da87cb3cfdb5b1dbf6072ab24 /Makefile.am
parent21c67366b4933be6542e5b5315460e5deb083b70 (diff)
downloadbubblewrap-3e659884a2f6079bd72929181e7bddf7d2b5da1d.tar.gz
Adapt tests so they can be run against installed binaries
Look for bwrap on PATH by default, but allow it to be overridden with BWRAP, and set that variable in TESTS_ENVIRONMENT so we are testing the just-built version in "make check". Signed-off-by: Simon McVittie <smcv@debian.org> Closes: #120 Approved by: alexlarsson
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b20e866..f080fb1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,7 +30,7 @@ test_bwrap_SOURCES=
include Makefile-docs.am
TESTS = tests/test-basic.sh tests/test-run.sh
-TESTS_ENVIRONMENT = PATH=$$(cd $(top_builddir) && pwd):$${PATH}
+TESTS_ENVIRONMENT = BWRAP=$(abs_top_builddir)/test-bwrap
EXTRA_DIST += $(TESTS)