From ca7de5b5ebb8752ed33c4dc8ef13b509ced68261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 17 Jul 2010 16:14:13 +0000 Subject: [PATCH] use libtool dlopen invocation to ensure we test in-tree invocation during tests --- ChangeLog | 2 ++ tests/test.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e5de295..d31dcea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2010-07-17 Caolán McNamara : * strip down csutil.* to the bits that are used + * use libtool dlopen invocation to ensure we test in-tree + libhyphen during tests 2010-03-04 Caolán McNamara : * hun#1724558 tidy substring.c a little diff --git a/tests/test.sh b/tests/test.sh index f516a22..89a688b 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -36,7 +36,7 @@ fi shopt -s expand_aliases -alias example='../example' +alias example='../libtool --mode=execute -dlopen ../.libs/libhyphen*.la ../example' if [ "$VALGRIND" != "" ]; then rm -f $TEMPDIR/test.pid* @@ -46,7 +46,7 @@ if [ "$VALGRIND" != "" ]; then if [ ! -f ../.libs/lt-example ]; then echo "Use make check before Valgrind tests" else - alias example='valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../.libs/lt-example' + alias example='../libtool --mode=execute -dlopen ../.libs/libhyphen*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../example' fi fi