From 03528cb411ba7e67bfc30fc9d5f066531c4757ef Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Wed, 26 Sep 2018 09:32:45 +0100 Subject: [PATCH] Allow tests to run on macOS (fixes #12) Thanks to Ryan Schmidt for the fix. --- .travis.yml | 4 +--- tests/Makefile.am | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1397402..72dfdda 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,6 +57,4 @@ install: script: - ./bootstrap - ./configure --enable-silent-rules CC=$COMPILER - - make - # The Cython-built Python extension doesn’t work without make install on macOS - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make install && make check ; else make distcheck ; fi + - make && make distcheck diff --git a/tests/Makefile.am b/tests/Makefile.am index 3dea44f..1dacf60 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -34,6 +34,7 @@ DISTCLEANFILES = Recode.c check-local: Recode@pyextext@ if test -n "$(VALGRIND)"; then export VALGRIND='$(VALGRIND) --suppressions=$(srcdir)/valgrind-python.supp'; fi; \ export LD_LIBRARY_PATH=$(top_builddir)/src/@objdir@; \ + export DYLD_LIBRARY_PATH=$(top_builddir)/src/@objdir@; \ RECODE=$(top_builddir)/src/recode$(EXEEXT) PYTHONPATH=.:$(srcdir) \ $$VALGRIND $(PYTHON) $(srcdir)/pytest $(LIMIT) $(srcdir)/t*.py -- 2.50.1