diff --git a/test/Makefile.am b/test/Makefile.am index 2e7f243..245853f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -17,10 +17,10 @@ TESTDATA=4x6.pcf 8x16.pcf out.expected fonts.conf.in if FREETYPE_PCF_LONG_FAMILY_NAMES out.expected: $(srcdir)/out.expected-long-family-names - cp $(srcdir)/out.expected-long-family-names out.expected + cp $(srcdir)/out.expected-long-family-names $(builddir)/out.expected else out.expected: $(srcdir)/out.expected-no-long-family-names - cp $(srcdir)/out.expected-no-long-family-names out.expected + cp $(srcdir)/out.expected-no-long-family-names $(builddir)/out.expected endif AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) diff --git a/test/run-test.sh b/test/run-test.sh index 5dc4c83..be2cc92 100644 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -51,7 +51,7 @@ check () { echo "=" >> out $FCLIST - family pixelsize | sort >> out tr -d '\015' out.tmp; mv out.tmp out - if cmp out $EXPECTED > /dev/null ; then : ; else + if cmp out $TESTDIR/$EXPECTED > /dev/null ; then : ; else echo "*** Test failed: $TEST" echo "*** output is in 'out', expected output in '$EXPECTED'" exit 1