From 3e659884a2f6079bd72929181e7bddf7d2b5da1d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 29 Nov 2016 10:16:30 +0000 Subject: 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 Closes: #120 Approved by: alexlarsson --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.am') 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) -- cgit v1.2.1