use libtool dlopen invocation to ensure we test in-tree invocation during tests

This commit is contained in:
Caolán McNamara 2010-07-17 16:14:13 +00:00
parent 6752c9adc3
commit ca7de5b5eb
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2010-07-17 Caolán McNamara <cmc at OOo>: 2010-07-17 Caolán McNamara <cmc at OOo>:
* strip down csutil.* to the bits that are used * 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 <cmc at OOo>: 2010-03-04 Caolán McNamara <cmc at OOo>:
* hun#1724558 tidy substring.c a little * hun#1724558 tidy substring.c a little

View File

@ -36,7 +36,7 @@ fi
shopt -s expand_aliases shopt -s expand_aliases
alias example='../example' alias example='../libtool --mode=execute -dlopen ../.libs/libhyphen*.la ../example'
if [ "$VALGRIND" != "" ]; then if [ "$VALGRIND" != "" ]; then
rm -f $TEMPDIR/test.pid* rm -f $TEMPDIR/test.pid*
@ -46,7 +46,7 @@ if [ "$VALGRIND" != "" ]; then
if [ ! -f ../.libs/lt-example ]; then if [ ! -f ../.libs/lt-example ]; then
echo "Use make check before Valgrind tests" echo "Use make check before Valgrind tests"
else 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
fi fi